mirror of
https://github.com/sstent/FitTrack_ReportGenerator.git
synced 2025-12-06 08:01:40 +00:00
23 lines
506 B
Python
23 lines
506 B
Python
from fastapi import FastAPI
|
|
from api.routers import analysis
|
|
from src.core.logger import logger
|
|
|
|
app = FastAPI()
|
|
|
|
app.include_router(analysis.router, prefix="/api")
|
|
|
|
|
|
@app.on_event("startup")
|
|
async def startup_event():
|
|
logger.info("FitTrack Report Generator API starting up...")
|
|
|
|
|
|
@app.on_event("shutdown")
|
|
async def shutdown_event():
|
|
logger.info("FitTrack Report Generator API shutting down...")
|
|
|
|
|
|
@app.get("/")
|
|
def read_root():
|
|
return {"message": "Welcome to FitTrack Report Generator API!"}
|