Skip to content

Commit

Permalink
feat: add router api ping (#47)
Browse files Browse the repository at this point in the history
add health check api ping
  • Loading branch information
floralatin committed Jul 12, 2022
1 parent 7dda0d9 commit f4253ec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ async def redoc_html():
title=fast_app.title + ' - ReDoc',
# redoc_js_url='/static/redoc.standalone.js',
)

@fast_app.get(f'/ping', include_in_schema=False)
async def ping():
return 'pong'

return fast_app

Expand Down

0 comments on commit f4253ec

Please sign in to comment.