Skip to content

Commit

Permalink
feat: add 'health' path (#54)
Browse files Browse the repository at this point in the history
This commit ensures that the health endpoint is also found on the `/health` path which is more common than having it under `/`.
  • Loading branch information
rickstaa authored Feb 19, 2025
1 parent 0119f59 commit 9837b6c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,5 +289,6 @@ async def on_shutdown(app: web.Application):
app.router.add_post("/offer", offer)
app.router.add_post("/prompt", set_prompt)
app.router.add_get("/", health)
app.router.add_get("/health", health)

web.run_app(app, host=args.host, port=int(args.port))

0 comments on commit 9837b6c

Please sign in to comment.