Revised API endpoints
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-10-02 03:28:40 +02:00
parent 7650ae2369
commit 38509c5a39
8 changed files with 143 additions and 127 deletions

View File

@@ -11,7 +11,7 @@ from model import db
from utils import register_all_error_handlers, storage
# import views
from views import SVMView, CNNView
from views import SVMView, CNNView, RootView
# Setup sentry
SENTRY_DSN = os.environ.get("SENTRY_DSN")
@@ -56,7 +56,7 @@ def create_db():
register_all_error_handlers(app)
# register views
for view in [SVMView, CNNView]:
for view in [SVMView, CNNView, RootView]:
view.register(app, trailing_slash=False, route_prefix='/model')
# start debuggig if needed