mirror of
https://github.com/simple-login/app.git
synced 2024-11-16 08:58:30 +01:00
f5babd9c81
* replace black by ruff * move alias import/export to settings * fix html closing tag * add rate limit for alias import & export --------- Co-authored-by: Son NK <son@simplelogin.io>
13 lines
416 B
Python
13 lines
416 B
Python
from app.dashboard.base import dashboard_bp
|
|
from flask_login import login_required, current_user
|
|
from app.alias_utils import alias_export_csv
|
|
from app.dashboard.views.enter_sudo import sudo_required
|
|
from app.extensions import limiter
|
|
|
|
|
|
@dashboard_bp.route("/alias_export", methods=["GET"])
|
|
@login_required
|
|
@sudo_required
|
|
@limiter.limit("2/minute")
|
|
def alias_export_route():
|
|
return alias_export_csv(current_user)
|