We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bd01f4 commit 2a51c76Copy full SHA for 2a51c76
backend/app/api/routers.py
@@ -7,6 +7,6 @@
7
8
v1 = APIRouter(prefix='/v1')
9
10
-v1.include_router(auth_router, prefix='/users', tags=['用户管理'])
+v1.include_router(auth_router)
11
12
v1.include_router(task_demo_router, prefix='/tasks', tags=['任务管理'])
backend/app/api/v1/auth/__init__.py
@@ -1,3 +1,8 @@
1
#!/usr/bin/env python3
2
# -*- coding: utf-8 -*-
3
-from backend.app.api.v1.auth.user import router
+from fastapi import APIRouter
4
+from backend.app.api.v1.auth.user import router as user_router
5
+
6
+router = APIRouter(prefix='/auth', tags=['用户管理'])
+router.include_router(user_router, prefix='/users')
0 commit comments