From f71bdb868212a13b001b08683bb7dc0e9f6773bc Mon Sep 17 00:00:00 2001 From: ZhongFuze Date: Tue, 15 Oct 2024 17:42:12 +0800 Subject: [PATCH] [!] fix `jwt` --- requirements.txt | 3 +-- src/app.py | 9 ++++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index d8a2479..b6c65e0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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 \ No newline at end of file +PyJWT==2.9.0 \ No newline at end of file diff --git a/src/app.py b/src/app.py index af15139..79da7e6 100644 --- a/src/app.py +++ b/src/app.py @@ -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 ''' @@ -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 @@ -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()