Gateway: typing: health_check()

This commit is contained in:
Athanasius 2021-11-04 13:31:48 +00:00
parent 5939e7c889
commit 8825526a1c
No known key found for this signature in database
GPG Key ID: 8C392035DD80FD62

View File

@ -308,13 +308,15 @@ def upload() -> str:
@app.route('/health_check/', method=['OPTIONS', 'GET']) @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. Return our version string in as an 'am I awake' signal.
This should only be used by the gateway monitoring script. It is used 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 to detect whether the gateway is still alive, and whether it should remain
in the DNS rotation. in the DNS rotation.
:returns: Version of this software.
""" """
return Settings.EDDN_VERSION return Settings.EDDN_VERSION