document + rename stuff

This commit is contained in:
cwilvx committed 2024-07-07 16:07:27 +03:00
1 parent 32a2684ea2
commit 2ba5d6c1d7
11 files changed
+72 -72

No files matched your search

+1 -4
View File
@@ -76,6 +76,7 @@ def create_api():
CORS(app, origins="*", supports_credentials=True)
# RESPONSE COMPRESSION
# Only compress JSON responses
Compress(app)
app.config["COMPRESS_MIMETYPES"] = [
"application/json",
@@ -84,10 +85,6 @@ def create_api():
# JWT
jwt = JWTManager(app)
# @jwt.user_identity_loader
# def user_identity_lookup(user):
# return user
@jwt.user_lookup_loader
def user_lookup_callback(_jwt_header, jwt_data):
identity = jwt_data["sub"]