Fixed description

This commit is contained in:
Profitroll 2023-02-18 00:47:21 +01:00
parent f6c2002811
commit c272342b4b

View File

@ -153,7 +153,7 @@ photo_get_token_responses = {
401: AccessTokenInvalidError().openapi, 401: AccessTokenInvalidError().openapi,
404: PhotoNotFoundError("id").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): async def photo_get_token(token: str, id: int):
db_entry = col_tokens.find_one({"short": token}) db_entry = col_tokens.find_one({"short": token})