mirror of
https://github.com/fastapi-practices/fastapi-best-architecture.git
synced 2026-09-21 13:12:24 +00:00
Update the routing style of the task app (#588)
* Update the routing style of the task app * Fix prefix
This commit is contained in:
@@ -5,6 +5,6 @@ from fastapi import APIRouter
|
||||
from backend.app.task.api.v1.task import router as task_router
|
||||
from backend.core.conf import settings
|
||||
|
||||
v1 = APIRouter(prefix=settings.FASTAPI_API_V1_PATH, tags=['任务'])
|
||||
v1 = APIRouter(prefix=settings.FASTAPI_API_V1_PATH)
|
||||
|
||||
v1.include_router(task_router, prefix='/tasks')
|
||||
v1.include_router(task_router, prefix='/tasks', tags=['任务'])
|
||||
|
||||
Reference in New Issue
Block a user