From e110ed765fb931c1627f17adf3f076bdf3b64f79 Mon Sep 17 00:00:00 2001 From: krateng Date: Thu, 9 Dec 2021 06:33:37 +0100 Subject: [PATCH] Removed superfluous temp endpoint stuff --- maloja/server.py | 30 +++++------------------------- 1 file changed, 5 insertions(+), 25 deletions(-) diff --git a/maloja/server.py b/maloja/server.py index 91924fe..cdbe040 100644 --- a/maloja/server.py +++ b/maloja/server.py @@ -331,33 +331,13 @@ signal.signal(signal.SIGTERM, graceful_exit) ##### - -def register_temp_endpoint(): - - @webserver.route("/") - @webserver.route("") - @webserver.route("/") - def notyet(*args,**kwargs): - abort(503,"Database is still being built") - -def unregister_temp_endpoint(): - pass - # TODO - -def wait_for_db(): - - register_endpoints_web_static() - register_endpoints_api() - register_endpoints_web_dynamic() - - database.start_db() - - - - def run_server(): - Thread(target=wait_for_db).start() + register_endpoints_api() + register_endpoints_web_static() + register_endpoints_web_dynamic() + + Thread(target=database.start_db).start() ## start database