mirror of
https://github.com/Cian-H/am-d-model.eu.git
synced 2025-12-22 13:41:56 +00:00
Plugin debugging
This commit is contained in:
@@ -10,18 +10,13 @@ blueprint = Blueprint(
|
||||
def init_menu():
|
||||
"""Add custom items to main menu."""
|
||||
current_menu.submenu("main").register(
|
||||
"amdmodel",
|
||||
id="amdmodel",
|
||||
text="About AM-D-Model",
|
||||
external_url="https://am-d-model.eu",
|
||||
order=0,
|
||||
)
|
||||
|
||||
|
||||
@blueprint.before_app_first_request
|
||||
def init_menu_on_request():
|
||||
init_menu()
|
||||
|
||||
|
||||
@blueprint.route("/debug-menu")
|
||||
def debug_menu():
|
||||
"""Debug endpoint to view menu structure."""
|
||||
|
||||
Reference in New Issue
Block a user