-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from mabel-dev/clash
clashing
- Loading branch information
Showing
22 changed files
with
1,703 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,15 @@ | ||
from fastapi import APIRouter, Request | ||
from fastapi.responses import UJSONResponse | ||
from mabel.logging import get_logger, set_log_name | ||
|
||
|
||
router = APIRouter() | ||
set_log_name("QUERY") | ||
logger = get_logger() | ||
logger.setLevel(5) | ||
|
||
|
||
@router.get("/user", response_class=UJSONResponse) | ||
def get_user_informations(request: Request): | ||
""" | ||
Get User information | ||
""" | ||
from internals.helpers.identity import get_jwt, get_identity | ||
from internals.helpers.identity import get_identity, get_jwt | ||
|
||
encoded_jwt = get_jwt(request) | ||
return {"identity": get_identity(encoded_jwt), "saved_queries": []} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.