Skip to content

Commit

Permalink
Merge pull request #37 from elekto-io/add_health_check
Browse files Browse the repository at this point in the history
Add simple HTTP 200 healh check endpoint at /health
  • Loading branch information
jberkus authored Sep 24, 2021
2 parents 1334ad3 + 5e4abd5 commit 83523b4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions elekto/controllers/public.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,8 @@ def public_election(eid):
return F.render_template('views/public/elections_single.html',
election=election.get(),
candidates=candidates)

@APP.route('/health')
def health_check():
status_code = F.Response(status=200)
return status_code

0 comments on commit 83523b4

Please sign in to comment.