feat: complete translator stack

This commit is contained in:
truetype committed 2026-01-26 18:15:46 +01:00
commit 6fe7c5121b
9946 files changed
+1747495

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
from fastapi import FastAPI
from backend.app.routers import health, translation
app = FastAPI()
app.include_router(health.router)
app.include_router(translation.router, prefix="/api")
@app.on_event("startup")
async def startup_event():
print("Avvio del servizio di traduzione")
@app.on_event("shutdown")
async def shutdown_event():
await translation.ollama_client.close()