File size: 324 Bytes
f67a585 |
1 2 3 4 5 6 7 8 9 10 11 12 |
from fastapi import FastAPI
from routers.continent import router as continent_router
app = FastAPI(title="World Population API")
# Register routers
app.include_router(continent_router, prefix="/continent", tags=["Continent Stats"])
@app.get("/")
def root():
return {"message": "Welcome to the World Population API!"}
|