Reorder some things

This commit is contained in:
Matthias 2019-04-04 19:34:19 +02:00
parent 9d95ae9341
commit 6bb2fad9b0
1 changed files with 6 additions and 6 deletions

View File

@ -38,6 +38,12 @@ class ApiServer(RPC):
thread = threading.Thread(target=self.run, daemon=True)
thread.start()
def cleanup(self) -> None:
pass
def send_msg(self, msg: Dict[str, str]) -> None:
pass
def register_rest_other(self):
"""
Registers flask app URLs that are not calls to functionality in rpc.rpc.
@ -84,12 +90,6 @@ class ApiServer(RPC):
except Exception:
logger.exception("Api server failed to start, exception message is:")
def cleanup(self) -> None:
pass
def send_msg(self, msg: Dict[str, str]) -> None:
pass
"""
Define the application methods here, called by app.add_url_rule
each Telegram command should have a like local substitute