Merge branch 'develop' into volumeList_enhanced_filter

This commit is contained in:
Matthias
2019-11-12 09:31:46 +01:00
14 changed files with 125 additions and 49 deletions

View File

@@ -169,6 +169,8 @@ class ApiServer(RPC):
view_func=self._status, methods=['GET'])
self.app.add_url_rule(f'{BASE_URI}/version', 'version',
view_func=self._version, methods=['GET'])
self.app.add_url_rule(f'{BASE_URI}/ping', 'ping',
view_func=self._ping, methods=['GET'])
# Combined actions and infos
self.app.add_url_rule(f'{BASE_URI}/blacklist', 'blacklist', view_func=self._blacklist,
@@ -224,6 +226,13 @@ class ApiServer(RPC):
msg = self._rpc_stopbuy()
return self.rest_dump(msg)
@rpc_catch_errors
def _ping(self):
"""
simple poing version
"""
return self.rest_dump({"status": "pong"})
@require_login
@rpc_catch_errors
def _version(self):