Skip to content

Commit f7b8080

Browse files
committed
Update the routing style of the task app
1 parent e8c844e commit f7b8080

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/app/task/api/router.py

Lines changed: 2 additions & 2 deletions
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=f'{settings.FASTAPI_API_V1_PATH}/tasks')
99

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

0 commit comments

Comments
 (0)