Skip to content

Commit 9e25be1

Browse files
committed
fix(Utils): add health route
1 parent 2e0718e commit 9e25be1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/opengeodeweb_back/app.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,9 @@ def return_error() -> Response:
6363
methods=["GET"],
6464
)
6565
def health() -> Response:
66-
health = utils_functions.kill_task(flask.current_app)
67-
return flask.make_response({"health": health}, 200)
66+
if utils_functions.kill_task(flask.current_app):
67+
return flask.make_response({}, 500)
68+
return flask.make_response({}, 200)
6869

6970
@app.route("/", methods=["POST"])
7071
@cross_origin()

0 commit comments

Comments
 (0)