about summary refs log tree commit diff
path: root/gn3/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'gn3/app.py')
-rw-r--r--gn3/app.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/gn3/app.py b/gn3/app.py
index cf88b2e..72d76c2 100644
--- a/gn3/app.py
+++ b/gn3/app.py
@@ -15,11 +15,12 @@ from gn3.api.correlation import correlation
 from gn3.api.data_entry import data_entry
 from gn3.api.wgcna import wgcna
 from gn3.api.ctl import ctl
+from gn3.errors import register_error_handlers
 from gn3.api.async_commands import async_commands
 from gn3.api.menu import menu
 from gn3.api.search import search
 from gn3.api.metadata import metadata
-from gn3.auth.authorisation.views import oauth2
+from gn3.auth import oauth2
 from gn3.auth.authentication.oauth2.server import setup_oauth2_server
 
 
@@ -60,5 +61,6 @@ def create_app(config: Union[Dict, str, None] = None) -> Flask:
     app.register_blueprint(metadata, url_prefix="/api/metadata")
     app.register_blueprint(oauth2, url_prefix="/api/oauth2")
 
+    register_error_handlers(app)
     setup_oauth2_server(app)
     return app