router.py 668 B

1234567891011121314151617181920
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. from fastapi import APIRouter
  4. from .endpoints.sysdata import router as sysdata_router
  5. from .endpoints.school import router as school_router
  6. from .endpoints.resource import router as resource_router
  7. from .endpoints.paper import router as paper_router
  8. from .endpoints.homepage import router as home_router
  9. from .endpoints.problem import router as problem_router
  10. router = APIRouter(prefix="/admin")
  11. router.include_router(school_router)
  12. router.include_router(resource_router)
  13. router.include_router(sysdata_router)
  14. router.include_router(paper_router)
  15. router.include_router(home_router)
  16. router.include_router(problem_router)