Another attempt to fix plugin

This commit is contained in:
2025-05-08 11:10:29 +01:00
parent ed38596a7c
commit acbeca40c0
2 changed files with 11 additions and 8 deletions

View File

@@ -1,15 +1,14 @@
from flask import Blueprint
blueprint = Blueprint(
"custom_menu",
__name__,
)
def init_app(app):
"""Initialize application."""
app.register_blueprint(blueprint)
from . import views
app.register_blueprint(views.blueprint)
@app.before_first_request
def init_menus():
views.init_menu()
return app