get_date endpoint

This commit is contained in:
Jörn-Michael Miehe 2022-11-15 23:53:30 +00:00
parent 66dbf9c9d8
commit 535239c1ed

View file

@ -27,30 +27,9 @@ async def get_letter(
return (await shuffle(cfg.solution))[index] return (await shuffle(cfg.solution))[index]
# @router.get("/date") @router.get("/date")
# def get_date() -> int: async def get_date() -> str:
# return date.today().day return date.today().isoformat()
# @router.get(
# "/picture",
# response_class=StreamingResponse,
# )
# async def get_picture():
# img = Image.open("hand.png").convert("RGBA")
# d1 = ImageDraw.Draw(img)
# font = ImageFont.truetype("Lena.ttf", 50)
# d1.text((260, 155), "W", font=font, fill=(0, 0, 255))
# # d1.text(xy=(400, 210), text="Deine Hände auch?",
# # font=Font, fill=(255, 0, 0))
# img_buffer = BytesIO()
# img.save(img_buffer, format="PNG", quality=85)
# img_buffer.seek(0)
# return StreamingResponse(
# content=img_buffer,
# media_type="image/png",
# )
async def user_can_view( async def user_can_view(