Fixed description
This commit is contained in:
parent
f6c2002811
commit
c272342b4b
@ -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})
|
||||||
|
Loading…
Reference in New Issue
Block a user