mirror of
https://github.com/EDCD/EDDN.git
synced 2025-04-24 12:20:54 +03:00
Gateway: typing: health_check()
This commit is contained in:
parent
5939e7c889
commit
8825526a1c
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user