mirror of
https://github.com/Cian-H/am-d-model.eu.git
synced 2025-12-23 05:51:57 +00:00
Fixed custom invenio plugin
This commit is contained in:
@@ -1,14 +1,15 @@
|
|||||||
from flask import redirect
|
from flask import redirect
|
||||||
from flask_menu import register_menu
|
from flask_menu import current_menu
|
||||||
|
|
||||||
|
|
||||||
def init_app(app):
|
def init_app(app):
|
||||||
"""Initialize application."""
|
"""Initialize the application and register the menu item."""
|
||||||
|
|
||||||
@app.route("/amdmodel")
|
@app.route("/amdmodel", endpoint="main.amdmodel")
|
||||||
@register_menu(app, ".main.amdmodel", "About AM-D-Model")
|
@current_menu.route("About AM-D-Model")
|
||||||
def redirect_to_amdmodel():
|
def redirect_to_amdmodel():
|
||||||
"""Redirect to the AM-D-Model website."""
|
"""Redirect to the AM-D-Model website."""
|
||||||
return redirect("https://am-d-model.eu")
|
return redirect("https://am-d-model.eu")
|
||||||
|
|
||||||
return app
|
return app
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user