nopaque/app/blueprints/settings/routes.py

11 lines
332 B
Python
Raw Normal View History

from flask import g, url_for
from flask_login import current_user
2024-09-30 11:30:13 +00:00
from app.blueprints.users.settings.routes import settings as settings_route
from . import bp
@bp.route('/settings', methods=['GET', 'POST'])
2023-03-20 15:00:25 +00:00
def settings():
g._nopaque_redirect_location_on_post = url_for('.settings')
return settings_route(current_user.id)