Cursor Agent AHAD commited on
Add GET / root endpoint with API links for easier local verification
Browse files55 unmodified lines56575859606155 unmodified lines)@app.get("/health", response_model=HealthResponse)def health() -> HealthResponse:return HealthResponse(status="ok", model_loaded=model_service.is_loaded)55 unmodified lines5657585960616263646566676869707172737475767755 unmodified lines)@app.get("/")def root() -> dict:settings = get_settings()return {"service": "Arabic Diacritization API","version": "2.0.0","model": settings.model_name,"endpoints": {"health": "/health","diacritize": "POST /diacritize","batch": "POST /diacritize/batch","docs": "/docs",},}@app.get("/health", response_model=HealthResponse)def health() -> HealthResponse:return HealthResponse(status="ok", model_loaded=model_service.is_loaded)
backend/app/main.py+16