fix settings

This commit is contained in:
Felix Ableitner 2024-11-29 11:49:57 +01:00
parent 425709251d
commit f6037afa00

View file

@ -291,6 +291,7 @@ pub fn config(cfg: &mut ServiceConfig, rate_limit: &RateLimitCell) {
.route("/totp/update", post().to(update_totp)) .route("/totp/update", post().to(update_totp))
.route("/verify_email", post().to(verify_email)), .route("/verify_email", post().to(verify_email)),
) )
.route("/account/settings/save", put().to(save_user_settings))
.service( .service(
scope("/account/settings") scope("/account/settings")
.wrap(rate_limit.import_user_settings()) .wrap(rate_limit.import_user_settings())
@ -313,7 +314,6 @@ pub fn config(cfg: &mut ServiceConfig, rate_limit: &RateLimitCell) {
"/mention/mark_all_as_read", "/mention/mark_all_as_read",
post().to(mark_all_notifications_read), post().to(mark_all_notifications_read),
) )
.route("/settings/save", put().to(save_user_settings))
.route("/report_count", get().to(report_count)) .route("/report_count", get().to(report_count))
.route("/unread_count", get().to(unread_count)) .route("/unread_count", get().to(unread_count))
.route("/list_logins", get().to(list_logins)) .route("/list_logins", get().to(list_logins))