backend_and_cms/backend/app/api/main.py

17 lines
1.1 KiB
Python
Raw Permalink Normal View History

2024-09-17 12:11:39 +08:00
from fastapi import APIRouter
2024-10-26 19:45:53 +08:00
from app.api.routes import items, login, users, utils, messages, setting, aboutUs, course, image, info_image, sechedule, organ
2024-09-17 12:11:39 +08:00
api_router = APIRouter()
api_router.include_router(login.router, tags=["login"])
api_router.include_router(users.router, prefix="/users", tags=["users"])
api_router.include_router(utils.router, prefix="/utils", tags=["utils"])
api_router.include_router(items.router, prefix="/items", tags=["items"])
api_router.include_router(messages.router, prefix="/messages", tags=["messages"])
api_router.include_router(setting.router, prefix="/setting", tags=["setting"])
api_router.include_router(aboutUs.router, prefix="/aboutUs", tags=["aboutUs"])
2024-10-26 19:45:53 +08:00
api_router.include_router(organ.router, prefix="/organ", tags=["organ"])
2024-09-17 12:11:39 +08:00
api_router.include_router(course.router, prefix="/course", tags=["course"])
api_router.include_router(image.router, prefix="/image", tags=["image"])
api_router.include_router(info_image.router, prefix="/info_image", tags=["info_image"])
api_router.include_router(sechedule.router, prefix="/sechedule", tags=["sechedule"])