mirror of
https://github.com/Cian-H/am-d-model.eu.git
synced 2025-12-22 21:41:57 +00:00
Plugin debug
This commit is contained in:
@@ -1,22 +1,13 @@
|
||||
from flask import redirect
|
||||
from flask_menu import register_menu
|
||||
|
||||
|
||||
def init_app(app):
|
||||
"""Initialize application."""
|
||||
|
||||
@app.route("/amdmodel_landing")
|
||||
@register_menu(app, ".main.amdmodel", "About AM-D-Model")
|
||||
def redirect_to_amdmodel():
|
||||
"""Redirect to the AM-D-Model website."""
|
||||
return redirect("https://am-d-model.eu")
|
||||
|
||||
@app.before_first_request
|
||||
def init_main_menu():
|
||||
from flask_menu import current_menu
|
||||
|
||||
current_menu.submenu("main").register(
|
||||
"amdmodel_landing",
|
||||
text="About AM-D-Model",
|
||||
order=0,
|
||||
)
|
||||
|
||||
return app
|
||||
|
||||
Reference in New Issue
Block a user