Gateway: typing: health_check()

This commit is contained in:
Athanasius 2021-11-04 13:31:48 +00:00
parent d0f2d6a5bc
commit 820abea797

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