web3-starter-py/fastapi-location-app/api/api.py
2022-03-26 07:19:28 +00: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")