from flask import url_for from flask_breadcrumbs import register_breadcrumb from flask_login import current_user from app.users.settings.routes import settings as settings_route from . import bp @bp.route('/settings', methods=['GET', 'POST']) @register_breadcrumb(bp, '.', 'settingsSettings') def settings(): return settings_route( current_user.id, redirect_location_on_post=url_for('.settings') )