| from fastapi import FastAPI | |
| from api.routes import router | |
| from utils.logger import logger | |
| app = FastAPI() | |
| # Include routes | |
| app.include_router(router) | |
| def home(): | |
| logger.info("Accessed home endpoint.") | |
| return {"message": "Welcome to the World Population API"} | |