__init__.py 785 B

12345678910111213141516171819
  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. routers = APIRouter()
  10. routers.include_router(users, prefix="/api", tags=["登入/註冊"])
  11. routers.include_router(classes, prefix="/api", tags=["課程列表"])
  12. routers.include_router(news, prefix="/api", tags=["最新消息"])
  13. routers.include_router(guidance, prefix="/api", tags=["輔導團紀錄"])
  14. routers.include_router(registration, prefix="/api", tags=["報名課程"])
  15. routers.include_router(article, prefix="/api", tags=["文章"])
  16. routers.include_router(tgc, prefix="/api", tags=["希望工程"])