From f18ee2dfd83789f174b5eae648b321750adcb418 Mon Sep 17 00:00:00 2001 From: Youe Graillot Date: Sun, 14 Nov 2021 18:40:31 +0100 Subject: [PATCH] rename /health to /healthcheck --- docker-compose.test.yml | 2 +- ihatemoney/web.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.test.yml b/docker-compose.test.yml index 86b78797..afb65ba4 100644 --- a/docker-compose.test.yml +++ b/docker-compose.test.yml @@ -6,6 +6,6 @@ services: build: . sut: image: alpine - command: sh -c 'wget -qO- ihatemoney:8000/health | grep "OK"' + command: sh -c 'wget -qO- ihatemoney:8000/healthcheck | grep "OK"' depends_on: - ihatemoney diff --git a/ihatemoney/web.py b/ihatemoney/web.py index 37a37c3d..65570beb 100644 --- a/ihatemoney/web.py +++ b/ihatemoney/web.py @@ -151,7 +151,7 @@ def pull_project(endpoint, values): # redirect to authentication page raise Redirect303(url_for(".authenticate", project_id=project_id)) -@main.route("/health", methods=["GET"]) +@main.route("/healthcheck", methods=["GET"]) def health(): return "OK"