fix(health): register route on health() not helper
Browse filesDecorator was on _frontend_build_sha(), causing 500 on /health and breaking HF sanity checks.
Co-authored-by: Cursor <cursoragent@cursor.com>
178 unmodified lines1791801811821831841852 unmodified lines188189190191192193178 unmodified linesreturn create_session(email, input_mode, summary)@app.get("/health", response_model=HealthResponse)def _frontend_build_sha() -> str:sha_path = Path(__file__).resolve().parent.parent / "static" / ".build-sha"try:2 unmodified linesreturn "unknown"def health() -> HealthResponse:key = os.getenv("ARMORIQ_API_KEY", "")config_path = Path(__file__).parent / "armoriq.yaml"178 unmodified lines1791801811821831842 unmodified lines187188189190191192193178 unmodified linesreturn create_session(email, input_mode, summary)def _frontend_build_sha() -> str:sha_path = Path(__file__).resolve().parent.parent / "static" / ".build-sha"try:2 unmodified linesreturn "unknown"@app.get("/health", response_model=HealthResponse)def health() -> HealthResponse:key = os.getenv("ARMORIQ_API_KEY", "")config_path = Path(__file__).parent / "armoriq.yaml"
backend/main.py+1-1