From 820abea797dcbaa9afa198c22ceaa0485a25cdf9 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Thu, 4 Nov 2021 13:31:48 +0000 Subject: [PATCH] Gateway: typing: health_check() --- src/eddn/Gateway.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/eddn/Gateway.py b/src/eddn/Gateway.py index fb977be..153ee00 100644 --- a/src/eddn/Gateway.py +++ b/src/eddn/Gateway.py @@ -340,13 +340,15 @@ def upload() -> str: @app.route('/health_check/', method=['OPTIONS', 'GET']) -def health_check(): +def health_check() -> str: """ Return our version string in as an 'am I awake' signal. This should only be used by the gateway monitoring script. It is used to detect whether the gateway is still alive, and whether it should remain in the DNS rotation. + + :returns: Version of this software. """ return Settings.EDDN_VERSION