feat: 重构API服务器,添加配置重载功能并移除冗余代码

This commit is contained in:
墨梓柒
2025-05-04 01:41:49 +08:00
parent cea176d63d
commit 668c9bbad6
7 changed files with 51 additions and 32 deletions

View File

@@ -1,8 +0,0 @@
from fastapi import FastAPI
from strawberry.fastapi import GraphQLRouter
app = FastAPI()
graphql_router = GraphQLRouter(schema=None, path="/") # Replace `None` with your actual schema
app.include_router(graphql_router, prefix="/graphql", tags=["GraphQL"])