File size: 282 Bytes
22ca0f5
fd9be75
 
22ca0f5
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from fastapi import FastAPI
from routers import stats
from utils.logger import logger

app = FastAPI()

# Include the stats router
app.include_router(stats.router)

@app.get("/")
def home():
    logger.info("Home page accessed.")
    return {"message": "Welcome to the Home Page"}