rename /health to /healthcheck

This commit is contained in:
Youe Graillot 2021-11-14 18:40:31 +01:00
parent dcf4f6c6aa
commit f18ee2dfd8
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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"