Skip to content

Commit 338e50e

Browse files
authored
Update the routing style of the task app (#588)
* Update the routing style of the task app * Fix prefix
1 parent 65500d7 commit 338e50e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/app/task/api/router.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
from backend.app.task.api.v1.task import router as task_router
66
from backend.core.conf import settings
77

8-
v1 = APIRouter(prefix=settings.FASTAPI_API_V1_PATH, tags=['任务'])
8+
v1 = APIRouter(prefix=settings.FASTAPI_API_V1_PATH)
99

10-
v1.include_router(task_router, prefix='/tasks')
10+
v1.include_router(task_router, prefix='/tasks', tags=['任务'])

0 commit comments

Comments
 (0)