2023-04-03 14:34:03 +00:00
|
|
|
from flask import url_for
|
2023-03-17 14:56:37 +00:00
|
|
|
from flask_breadcrumbs import register_breadcrumb
|
2023-04-03 14:34:03 +00:00
|
|
|
from flask_login import current_user
|
|
|
|
from app.users.settings.routes import settings as settings_route
|
2023-03-17 14:56:37 +00:00
|
|
|
from . import bp
|
|
|
|
|
|
|
|
|
2023-04-03 14:34:03 +00:00
|
|
|
@bp.route('/settings', methods=['GET', 'POST'])
|
2023-03-20 15:00:25 +00:00
|
|
|
@register_breadcrumb(bp, '.', '<i class="material-icons left">settings</i>Settings')
|
|
|
|
def settings():
|
2023-04-03 14:34:03 +00:00
|
|
|
return settings_route(
|
|
|
|
current_user.id,
|
|
|
|
redirect_location_on_post=url_for('.settings')
|
2023-03-17 14:56:37 +00:00
|
|
|
)
|