Skip to content

Commit

Permalink
Merge pull request #33 from jordanopensource/feat/add-a-healthcheck-e…
Browse files Browse the repository at this point in the history
…ndpoint

Feat: add healthcheck endpoint
  • Loading branch information
thamudi authored Feb 6, 2024
2 parents a489964 + 42127b7 commit 7b06f93
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 working👍'}


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

0 comments on commit 7b06f93

Please sign in to comment.