Skip to content

Commit

Permalink
chore: add healthcheck endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaraa committed Feb 6, 2024
1 parent a489964 commit 627c80f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions snappass/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,11 @@ def show_password(password_key):
return render_template('password.html', password=password)


@app.route('/healthcheck', methods=['GET'])
def get_healthcheck():
return {'result': 'I\'m not a Barbie girl, and this isn\'t a Barbie world, WAKE UP!'}


@check_redis_alive
def main():
app.run(host='0.0.0.0')
Expand Down

0 comments on commit 627c80f

Please sign in to comment.