fix jwt token decoding; correctly import google auth routes; adjust app/auth/ package

This commit is contained in:
2026-05-19 22:21:27 +08:00
parent 419af38684
commit fe1fde778f
6 changed files with 85 additions and 29 deletions
+6 -1
View File
@@ -25,4 +25,9 @@ graphql_router = GraphQLRouter(schema, context_getter=get_context)
# 挂载路由
app.include_router(auth_router) # 保留现有的 auth 路由供 Google OAuth 回调使用
app.include_router(graphql_router, prefix="/graphql") # 挂载 GraphQL 终点,前端以后只需要请求 /graphql
app.include_router(graphql_router, prefix="/graphql") # 挂载 GraphQL 终点,前端以后只需要请求 /graphql
# test code
for route in app.routes:
methods = getattr(route, "methods", "N/A")
print(f"Path: {route.path} | Name: {route.name} | Methods: {methods}")