From f6037afa00287acbdf8a8f0e168e2092a2d76f01 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Fri, 29 Nov 2024 11:49:57 +0100 Subject: [PATCH] fix settings --- src/api_routes_v4.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api_routes_v4.rs b/src/api_routes_v4.rs index bbb0a733b..d34ecbf0a 100644 --- a/src/api_routes_v4.rs +++ b/src/api_routes_v4.rs @@ -291,6 +291,7 @@ pub fn config(cfg: &mut ServiceConfig, rate_limit: &RateLimitCell) { .route("/totp/update", post().to(update_totp)) .route("/verify_email", post().to(verify_email)), ) + .route("/account/settings/save", put().to(save_user_settings)) .service( scope("/account/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", post().to(mark_all_notifications_read), ) - .route("/settings/save", put().to(save_user_settings)) .route("/report_count", get().to(report_count)) .route("/unread_count", get().to(unread_count)) .route("/list_logins", get().to(list_logins))