From 5cda78bf324838979b43b452ce7ba83cffd26d03 Mon Sep 17 00:00:00 2001 From: creslinux Date: Sat, 23 Jun 2018 09:19:34 +0000 Subject: [PATCH] moved default page "/" index into self_register_other() out of the block of URLs that call rpc.rcp functionality. --- freqtrade/rpc/api_server.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/freqtrade/rpc/api_server.py b/freqtrade/rpc/api_server.py index 945e870bc..7c8d33231 100644 --- a/freqtrade/rpc/api_server.py +++ b/freqtrade/rpc/api_server.py @@ -37,14 +37,16 @@ class ApiServerSuperWrap(RPC): def register_rest_other(self): #Added as a placeholder for app URLs that are not implemented in rpc.rpc app.register_error_handler(404, self.page_not_found) + app.add_url_rule('/', 'hello', view_func=self.hello, methods=['GET']) def register_rest_rpc_urls(self): # register the url rules available on the api server + # This is where to register rest urls that make use of + # rpc.rpc functions ''' First two arguments passed are /URL and 'Label' Label can be used as a shortcut when refactoring ''' - app.add_url_rule('/', 'hello', view_func=self.hello, methods=['GET']) app.add_url_rule('/stop', 'stop', view_func=self.stop, methods=['GET']) app.add_url_rule('/start', 'start', view_func=self.start, methods=['GET']) app.add_url_rule('/daily', 'daily', view_func=self.daily, methods=['GET'])