diff options
author | ramkri123 <ramkri123@gmail.com> | 2018-03-25 00:00:07 -0300 |
---|---|---|
committer | ramkri123 <ramkri123@gmail.com> | 2018-03-25 00:00:19 -0300 |
commit | ed70b5c6d6589e4e1ce80229612ea5b680736c4c (patch) | |
tree | 6e867a26a373e52c34c368c9dad699e24dd47758 | |
parent | 5f91345fbb9cf6a9c55a0bdc70156af02fcf9b02 (diff) |
added healthcheck
Issue-ID: OPTFRA-22
Change-Id: I783a597b81abd0027819fff0c103250e1e003c10
Signed-off-by: ramkri123 <ramkri123@gmail.com>
-rwxr-xr-x | osdfapp.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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(): |