File size: 318 Bytes
a1a172c
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
from fastapi import FastAPI
from backend.routers import population  # Absolute import
from backend.utils.logger import setup_logging  # Absolute import

app = FastAPI()
setup_logging()

app.include_router(population.router)

@app.get("/")
def read_root():
    return {"message": "Welcome to the World Population API."}