From 8825526a1c5c38d3f20b99dd40991a7aa26883d9 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 fd2beed..c0636aa 100644 --- a/src/eddn/Gateway.py +++ b/src/eddn/Gateway.py @@ -308,13 +308,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