summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorramkri123 <ramkri123@gmail.com>2018-03-25 00:00:07 -0300
committerramkri123 <ramkri123@gmail.com>2018-03-25 00:00:19 -0300
commited70b5c6d6589e4e1ce80229612ea5b680736c4c (patch)
tree6e867a26a373e52c34c368c9dad699e24dd47758
parent5f91345fbb9cf6a9c55a0bdc70156af02fcf9b02 (diff)
added healthcheck
Issue-ID: OPTFRA-22 Change-Id: I783a597b81abd0027819fff0c103250e1e003c10 Signed-off-by: ramkri123 <ramkri123@gmail.com>
-rwxr-xr-xosdfapp.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/osdfapp.py b/osdfapp.py
index 6854061..eb14530 100755
--- a/osdfapp.py
+++ b/osdfapp.py
@@ -93,6 +93,12 @@ def handle_data_error(e):
return response
+@app.route("/api/oof/v1/healthcheck", methods=["GET"])
+def do_osdf_health_check():
+ """Simple health check"""
+ return "OK"
+
+
@app.route("/api/oof/v1/placement", methods=["POST"])
@auth_basic.login_required
def do_placement_opt():