mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-21 21:57:49 +00:00
Don't show optional token param in API docs
This commit is contained in:
parent
5d4645b2c1
commit
037c659f9b
@ -32,7 +32,7 @@ oauth2_scheme = OAuth2PasswordBearer(tokenUrl="/v3/users/login", auto_error=Fals
|
|||||||
async def get_user_from_token(
|
async def get_user_from_token(
|
||||||
bearer_token: str = Depends(oauth2_scheme),
|
bearer_token: str = Depends(oauth2_scheme),
|
||||||
user_repo: UsersRepository = Depends(get_repository(UsersRepository)),
|
user_repo: UsersRepository = Depends(get_repository(UsersRepository)),
|
||||||
token: Optional[str] = None,
|
token: Optional[str] = Query(None, include_in_schema=False)
|
||||||
) -> schemas.User:
|
) -> schemas.User:
|
||||||
|
|
||||||
if bearer_token:
|
if bearer_token:
|
||||||
|
Loading…
Reference in New Issue
Block a user