routes.py 923 B

12345678910111213141516171819202122232425262728293031
  1. #!/usr/bin/env python
  2. """
  3. @Contact : liuyuqi.gov@msn.cn
  4. @Time : 2024/03/21 12:29:53
  5. @License : Copyright © 2017-2022 liuyuqi. All Rights Reserved.
  6. @Desc : api v1
  7. """
  8. from app.api import home
  9. from app.api.v1 import items, login, users, utils #, image_inference
  10. from app.config import settings
  11. from fastapi import APIRouter
  12. api_router = APIRouter()
  13. api_router.include_router(home.router, tags=["home"])
  14. api_router.include_router(login.router, tags=["login"], prefix=settings.API_V1_STR)
  15. api_router.include_router(
  16. users.router, prefix=settings.API_V1_STR + "/users", tags=["users"]
  17. )
  18. api_router.include_router(
  19. utils.router, prefix=settings.API_V1_STR + "/utils", tags=["utils"]
  20. )
  21. api_router.include_router(
  22. items.router, prefix=settings.API_V1_STR + "/items", tags=["items"]
  23. )
  24. # api_router.include_router(
  25. # image_inference.router, prefix=settings.API_V1_STR +"/image", tags=["image"]
  26. # )