mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-05 20:51:49 +02:00
rename /health to /healthcheck
This commit is contained in:
parent
dcf4f6c6aa
commit
f18ee2dfd8
2 changed files with 2 additions and 2 deletions
|
@ -6,6 +6,6 @@ services:
|
||||||
build: .
|
build: .
|
||||||
sut:
|
sut:
|
||||||
image: alpine
|
image: alpine
|
||||||
command: sh -c 'wget -qO- ihatemoney:8000/health | grep "OK"'
|
command: sh -c 'wget -qO- ihatemoney:8000/healthcheck | grep "OK"'
|
||||||
depends_on:
|
depends_on:
|
||||||
- ihatemoney
|
- ihatemoney
|
||||||
|
|
|
@ -151,7 +151,7 @@ def pull_project(endpoint, values):
|
||||||
# redirect to authentication page
|
# redirect to authentication page
|
||||||
raise Redirect303(url_for(".authenticate", project_id=project_id))
|
raise Redirect303(url_for(".authenticate", project_id=project_id))
|
||||||
|
|
||||||
@main.route("/health", methods=["GET"])
|
@main.route("/healthcheck", methods=["GET"])
|
||||||
def health():
|
def health():
|
||||||
return "OK"
|
return "OK"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue