consolidate api endpoints into own module and flask Blueprint

This commit is contained in:
Fabian Dill
2020-12-01 01:33:57 +01:00
parent 74cf51c20b
commit 31839d421d
4 changed files with 81 additions and 65 deletions

View File

@@ -147,4 +147,5 @@ def favicon():
from WebHostLib.customserver import run_server_process
from . import tracker, upload, landing, check, generate, downloads # to trigger app routing picking up on it
from . import tracker, upload, landing, check, generate, downloads, api # to trigger app routing picking up on it
app.register_blueprint(api.api_endpoints)