File size: 397 Bytes
ef6fa9a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from fastapi import FastAPI
from backend.routes.continents import router
from backend.logger import logger
from backend.routes.continents import router

app = FastAPI()

# Include API routes
app.include_router(router)

logger.info("Starting FastAPI application...")

@app.get("/")
def home():
    logger.info("Home endpoint accessed")
    return {"message": "Welcome to the World Population API"}