From c272342b4b68bde072d2b40976c2b4253c099b86 Mon Sep 17 00:00:00 2001 From: Profitroll <47523801+profitrollgame@users.noreply.github.com> Date: Sat, 18 Feb 2023 00:47:21 +0100 Subject: [PATCH] Fixed description --- extensions/photos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/photos.py b/extensions/photos.py index b79d343..6743b30 100644 --- a/extensions/photos.py +++ b/extensions/photos.py @@ -153,7 +153,7 @@ photo_get_token_responses = { 401: AccessTokenInvalidError().openapi, 404: PhotoNotFoundError("id").openapi } -@app.get("/token/photo/{token}", description="Get a photo by id", responses=photo_get_token_responses) +@app.get("/token/photo/{token}", description="Get a photo by its duplicate token", responses=photo_get_token_responses) async def photo_get_token(token: str, id: int): db_entry = col_tokens.find_one({"short": token})