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})