Skip to content

Commit e5402a3

Browse files
committed
fix: repair health endpoint
1 parent 7addb4d commit e5402a3

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/aind_metadata_viz/endpoints.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323
router = APIRouter()
2424

2525

26+
@router.get("/health")
27+
async def health_check():
28+
return JSONResponse(status_code=200, content={"status": "healthy"})
29+
30+
2631
@router.get("/view")
2732
async def redirect_view(name: str = ""):
2833
return RedirectResponse(url=f"https://data.allenneuraldynamics.org/record?name={name}", status_code=301)

0 commit comments

Comments
 (0)