Load and register analysis module blueprints

This commit is contained in:
Vivek Santayana 2023-03-04 18:54:47 +00:00
parent 607b132996
commit 1ea93994ab

View File

@ -51,6 +51,7 @@ def create_app():
from .views import views from .views import views
from .editor.views import editor from .editor.views import editor
from .view.views import view from .view.views import view
from .analysis.views import analysis
app.register_blueprint(admin, url_prefix='/admin') app.register_blueprint(admin, url_prefix='/admin')
app.register_blueprint(api, url_prefix='/api') app.register_blueprint(api, url_prefix='/api')
@ -58,6 +59,7 @@ def create_app():
app.register_blueprint(quiz) app.register_blueprint(quiz)
app.register_blueprint(editor, url_prefix='/admin/editor') app.register_blueprint(editor, url_prefix='/admin/editor')
app.register_blueprint(view, url_prefix='/admin/view') app.register_blueprint(view, url_prefix='/admin/view')
app.register_blueprint(analysis, url_prefix='/admin/analysis')
"""Create Database Tables before First Request""" """Create Database Tables before First Request"""
@app.before_first_request @app.before_first_request