add: allow mods to remove associations

This commit is contained in:
trisua 2025-08-10 22:26:13 -04:00
parent bcee3f7763
commit ba319130d2
4 changed files with 64 additions and 12 deletions

View file

@ -397,6 +397,10 @@ pub fn routes() -> Router {
"/auth/user/{id}/totp/codes",
post(auth::profile::refresh_totp_codes_request),
)
.route(
"/auth/user/{id}/associations/{association}",
delete(auth::profile::remove_association_request),
)
.route(
"/auth/user/{username}/totp/check",
get(auth::profile::has_totp_enabled_request),
@ -404,7 +408,7 @@ pub fn routes() -> Router {
.route("/auth/user/me/seen", post(auth::profile::seen_request))
.route(
"/auth/user/me/append_associations",
put(auth::profile::append_associations_request),
put(auth::profile::append_association_request),
)
.route("/auth/user/find/{id}", get(auth::profile::redirect_from_id))
.route(