mirror of
https://github.com/Cian-H/am-d-model.eu.git
synced 2025-12-22 21:41:57 +00:00
Plugin debugging
This commit is contained in:
@@ -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."""
|
||||||
|
|||||||
Reference in New Issue
Block a user