Gateway: typing: health_check()

This commit is contained in:
Athanasius committed 2022-03-12 10:49:53 +00:00
1 parent d0f2d6a5bc
commit 820abea797
1 file changed
+3 -1
+3 -1
View File
@@ -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