Spaces:
Sleeping
Sleeping
Ezhil
commited on
Commit
·
cfa5c4c
1
Parent(s):
87e5c9f
main.py
DELETED
|
@@ -1,11 +0,0 @@
|
|
| 1 |
-
from fastapi import FastAPI
|
| 2 |
-
from routers.continent import router as continent_router
|
| 3 |
-
|
| 4 |
-
app = FastAPI(title="World Population API")
|
| 5 |
-
|
| 6 |
-
# Register routers
|
| 7 |
-
app.include_router(continent_router, prefix="/continent", tags=["Continent Stats"])
|
| 8 |
-
|
| 9 |
-
@app.get("/")
|
| 10 |
-
def root():
|
| 11 |
-
return {"message": "Welcome to the World Population API!"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|