mirror of
https://github.com/Cian-H/am-d-model.eu.git
synced 2025-12-22 21:41:57 +00:00
17 lines
423 B
Python
17 lines
423 B
Python
from flask import redirect
|
|
from flask_menu import current_menu
|
|
|
|
|
|
def init_app(app):
|
|
"""Initialize application."""
|
|
|
|
@app.route("/amdmodel")
|
|
def redirect_to_amdmodel():
|
|
"""Redirect to the AM-D-Model website."""
|
|
rd = redirect("https://am-d-model.eu")
|
|
with app.app_context():
|
|
rd = current_menu.register(".main.amdmodel", "About AM-D-Model")(rd)
|
|
return rd
|
|
|
|
return app
|