Plugin debugging

This commit is contained in:
2025-05-08 11:19:12 +01:00
parent acbeca40c0
commit b0744c4acb

View File

@@ -10,18 +10,13 @@ blueprint = Blueprint(
def init_menu(): def init_menu():
"""Add custom items to main menu.""" """Add custom items to main menu."""
current_menu.submenu("main").register( current_menu.submenu("main").register(
"amdmodel", id="amdmodel",
text="About AM-D-Model", text="About AM-D-Model",
external_url="https://am-d-model.eu", external_url="https://am-d-model.eu",
order=0, order=0,
) )
@blueprint.before_app_first_request
def init_menu_on_request():
init_menu()
@blueprint.route("/debug-menu") @blueprint.route("/debug-menu")
def debug_menu(): def debug_menu():
"""Debug endpoint to view menu structure.""" """Debug endpoint to view menu structure."""