mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-26 22:31:20 +00:00
Put /admin/purge routes before /admin routes (#3244)
This commit is contained in:
parent
c9d1fec117
commit
ef3544bac4
1 changed files with 7 additions and 8 deletions
|
@ -335,15 +335,14 @@ pub fn config(cfg: &mut web::ServiceConfig, rate_limit: &RateLimitCell) {
|
||||||
.route(
|
.route(
|
||||||
"/registration_application/approve",
|
"/registration_application/approve",
|
||||||
web::put().to(route_post::<ApproveRegistrationApplication>),
|
web::put().to(route_post::<ApproveRegistrationApplication>),
|
||||||
),
|
|
||||||
)
|
)
|
||||||
.service(
|
.service(
|
||||||
web::scope("/admin/purge")
|
web::scope("/purge")
|
||||||
.wrap(rate_limit.message())
|
|
||||||
.route("/person", web::post().to(route_post::<PurgePerson>))
|
.route("/person", web::post().to(route_post::<PurgePerson>))
|
||||||
.route("/community", web::post().to(route_post::<PurgeCommunity>))
|
.route("/community", web::post().to(route_post::<PurgeCommunity>))
|
||||||
.route("/post", web::post().to(route_post::<PurgePost>))
|
.route("/post", web::post().to(route_post::<PurgePost>))
|
||||||
.route("/comment", web::post().to(route_post::<PurgeComment>)),
|
.route("/comment", web::post().to(route_post::<PurgeComment>)),
|
||||||
|
),
|
||||||
)
|
)
|
||||||
.service(
|
.service(
|
||||||
web::scope("/custom_emoji")
|
web::scope("/custom_emoji")
|
||||||
|
|
Loading…
Reference in a new issue