diff options
author | 2018-02-03 21:59:47 +0100 | |
---|---|---|
committer | 2018-02-03 21:59:47 +0100 | |
commit | af2bf8060c6eb001e5f452532be98188fcd3a7e6 (patch) | |
tree | 7d10c32bc6ffce8a9b2f70d60380135514070192 | |
parent | adds a catchall for 404 and a healthcheck route (diff) |
satisfy snekcheck
-rw-r--r-- | app.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -18,12 +18,12 @@ def _index(): @app.route("/healthcheck") -def healthcheck(): +def _healthcheck(): return jsonify({"status":"ok"}) @app.errorhandler(404) -def page_not_found(e): +def _page_not_found(e): return "replace me with a template, 404 not found", 404 |