__init__.py 902 B

123456789101112131415161718192021
  1. from fastapi import APIRouter
  2. from app.api.users import users
  3. from app.api.classes import classes
  4. from app.api.news import news
  5. from app.api.guidance import guidance
  6. from app.api.registration import registration
  7. from app.api.article import article
  8. from app.api.tgc import tgc
  9. from app.api.data import data
  10. routers = APIRouter()
  11. routers.include_router(users, prefix="/api", tags=["登入/註冊"])
  12. routers.include_router(classes, prefix="/api", tags=["課程列表"])
  13. routers.include_router(news, prefix="/api", tags=["最新消息"])
  14. routers.include_router(guidance, prefix="/api", tags=["輔導團紀錄"])
  15. routers.include_router(registration, prefix="/api", tags=["報名課程"])
  16. routers.include_router(article, prefix="/api", tags=["文章"])
  17. routers.include_router(tgc, prefix="/api", tags=["希望工程"])
  18. routers.include_router(data, prefix="/api", tags=["數據分析"])