1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-28 11:18:11 +00:00

Don't show optional token param in API docs

This commit is contained in:
grossmj 2022-07-20 00:29:42 +02:00
parent 5d4645b2c1
commit 037c659f9b

View File

@ -32,7 +32,7 @@ oauth2_scheme = OAuth2PasswordBearer(tokenUrl="/v3/users/login", auto_error=Fals
async def get_user_from_token(
bearer_token: str = Depends(oauth2_scheme),
user_repo: UsersRepository = Depends(get_repository(UsersRepository)),
token: Optional[str] = None,
token: Optional[str] = Query(None, include_in_schema=False)
) -> schemas.User:
if bearer_token: