This commit is contained in:
2026-03-23 11:13:30 -03:00
parent 8186bb5fe6
commit 71fd0510de
34 changed files with 1373 additions and 104 deletions

View File

@@ -40,7 +40,7 @@ app = FastAPI(
# CORS
app.add_middleware(
CORSMiddleware,
allow_origins=["http://mpr.local.ar", "http://localhost:5173"],
allow_origins=["http://mpr.local.ar", "http://k8s.mpr.local.ar", "http://localhost:5173"],
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
@@ -57,6 +57,11 @@ app.include_router(chunker_router)
app.include_router(detect_router)
@app.get("/health")
def health():
return {"status": "ok"}
@app.get("/")
def root():
"""API root."""