Skip to content

Commit

Permalink
[!] fix jwt
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhongFuze committed Oct 15, 2024
1 parent 4b6ffda commit f71bdb8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ psycopg2-binary==2.9.9
asyncio==3.4.3
asyncpg==0.29.0
aioredis==2.0.1
PyJWT==2.9.0
jwt==1.3.1
PyJWT==2.9.0
9 changes: 8 additions & 1 deletion src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Author: Zella Zhong
Date: 2024-08-28 19:02:56
LastEditors: Zella Zhong
LastEditTime: 2024-10-15 00:26:58
LastEditTime: 2024-10-15 17:24:52
FilePath: /data_service/src/app.py
Description: main entry point
'''
Expand All @@ -21,6 +21,7 @@
from datetime import datetime, timezone
from fastapi import FastAPI, Request, HTTPException
from starlette.responses import JSONResponse
from starlette.responses import HTMLResponse
from strawberry.fastapi import GraphQLRouter
from strawberry.schema.config import StrawberryConfig
from strawberry.extensions import MaskErrors
Expand All @@ -47,6 +48,12 @@

)

# def create_app():
# app = FastAPI()
# graphql_app = MyGraphQLRouter(schema)
# app.include_router(graphql_app, prefix="/graphql")
# return app


def create_app():
app = FastAPI()
Expand Down

0 comments on commit f71bdb8

Please sign in to comment.