web3-starter-py/web2-projects/fastapi-location-app/api/api.py
osiris account 314bdf533e 💾
2023-03-12 15:32:23 -07:00

14 lines
302 B
Python

from .routes import router as LocationRouter
from fastapi import FastAPI
app = FastAPI()
@app.get("/", tags=["Root"])
async def read_root() -> dict:
return {
"message": "Location API 🗺✨. Try /docs to learn about this API"
}
app.include_router(LocationRouter, prefix="/tzone")