mirror of
https://github.com/autistic-symposium/web3-starter-py.git
synced 2025-05-17 22:20:22 -04:00
Add Location API project on FastAPI deplpyed in Vercel
This commit is contained in:
parent
188195b7a3
commit
896978f1ab
12 changed files with 134 additions and 0 deletions
14
fastapi-location-app/api/api.py
Normal file
14
fastapi-location-app/api/api.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
|
||||
from .routes import router as LocationRouter
|
||||
from fastapi import FastAPI
|
||||
|
||||
app = FastAPI()
|
||||
|
||||
|
||||
@app.get("/", tags=["Root"])
|
||||
async def read_root() -> dict:
|
||||
return {
|
||||
"message": "$CHOICES Timezone API ⏳✨. Try /docs to learn about this API"
|
||||
}
|
||||
|
||||
app.include_router(LocationRouter, prefix="/tzone")
|
Loading…
Add table
Add a link
Reference in a new issue