Skip to content

Commit 83523b4

Browse files
authored
Merge pull request #37 from elekto-io/add_health_check
Add simple HTTP 200 healh check endpoint at /health
2 parents 1334ad3 + 5e4abd5 commit 83523b4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

elekto/controllers/public.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,8 @@ def public_election(eid):
4949
return F.render_template('views/public/elections_single.html',
5050
election=election.get(),
5151
candidates=candidates)
52+
53+
@APP.route('/health')
54+
def health_check():
55+
status_code = F.Response(status=200)
56+
return status_code

0 commit comments

Comments
 (0)