Add Location API project on FastAPI deplpyed in Vercel

This commit is contained in:
bt3gl 2022-03-26 11:13:24 +04:00
parent 188195b7a3
commit 896978f1ab
12 changed files with 134 additions and 0 deletions

View 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")