mirror of
https://github.com/autistic-symposium/web3-starter-py.git
synced 2025-05-17 06:02:12 -04:00
14 lines
302 B
Python
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")
|