2022-11-23 13:51:08 +01:00
|
|
|
from app.dashboard.base import dashboard_bp
|
|
|
|
from flask_login import login_required, current_user
|
|
|
|
from app.alias_utils import alias_export_csv
|
2024-02-29 11:20:29 +01:00
|
|
|
from app.dashboard.views.enter_sudo import sudo_required
|
2024-03-14 15:56:35 +01:00
|
|
|
from app.extensions import limiter
|
2022-11-23 13:51:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
@dashboard_bp.route("/alias_export", methods=["GET"])
|
|
|
|
@login_required
|
2024-02-29 11:20:29 +01:00
|
|
|
@sudo_required
|
2024-03-14 15:56:35 +01:00
|
|
|
@limiter.limit("2/minute")
|
2022-11-23 13:51:08 +01:00
|
|
|
def alias_export_route():
|
|
|
|
return alias_export_csv(current_user)
|