Skip to content

Commit 2e0718e

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

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/opengeodeweb_back/app.py

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

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

0 commit comments

Comments
 (0)