home.py 322 B

12345678910111213141516
  1. #!/usr/bin/env python
  2. """
  3. @Contact : liuyuqi.gov@msn.cn
  4. @Time : 2024/03/22 09:27:16
  5. @License : Copyright © 2017-2022 liuyuqi. All Rights Reserved.
  6. @Desc :
  7. """
  8. from fastapi import APIRouter
  9. router = APIRouter()
  10. @router.get("/")
  11. async def index():
  12. return {"code": 200, "message": "this is backend api"}