router.py 695 B

1234567891011121314151617181920212223
  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 fastapi import APIRouter
  10. router = APIRouter(prefix="/api")
  11. router.include_router(teacher_router)
  12. router.include_router(resource_router)
  13. router.include_router(student_router)
  14. router.include_router(review_router)
  15. router.include_router(analysis_router)
  16. router.include_router(paper_router)
  17. __all__ = [router]