router.py 789 B

12345678910111213141516171819202122232425
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. from .endpoints.teacher import router as teacher_router
  4. from .endpoints.resource import router as resource_router
  5. from .endpoints.student import router as student_router
  6. from .endpoints.review import router as review_router
  7. from .endpoints.analysis import router as analysis_router
  8. from .endpoints.paper import router as paper_router
  9. from .endpoints.problem import router as problem_router
  10. from fastapi import APIRouter
  11. router = APIRouter(prefix="/api")
  12. router.include_router(teacher_router)
  13. router.include_router(resource_router)
  14. router.include_router(student_router)
  15. router.include_router(review_router)
  16. router.include_router(analysis_router)
  17. router.include_router(paper_router)
  18. router.include_router(problem_router)
  19. __all__ = [router]