Skip to content

Commit 27e3a08

Browse files
committed
fix: health route fix
1 parent 2fb9970 commit 27e3a08

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

Diff for: agents-api/agents_api/routers/healthz/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from .check_health import check_health
2+
from .router import router

Diff for: agents-api/agents_api/routers/healthz/router.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from fastapi import APIRouter
2+
3+
router: APIRouter = APIRouter()
4+
5+

Diff for: agents-api/agents_api/routers/jobs/__init__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
from .routers import router # noqa: F401
1+
# noqa: F401
2+
from .routers import router

Diff for: agents-api/agents_api/web.py

+2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
sessions,
3333
tasks,
3434
users,
35+
healthz,
3536
)
3637

3738
if not sentry_dsn:
@@ -151,6 +152,7 @@ def register_exceptions(app: FastAPI) -> None:
151152
app.include_router(docs.router, dependencies=[Depends(get_api_key)])
152153
app.include_router(tasks.router, dependencies=[Depends(get_api_key)])
153154
app.include_router(internal.router)
155+
app.include_router(healthz.router)
154156

155157
# TODO: CORS should be enabled only for JWT auth
156158
#

0 commit comments

Comments
 (0)