You've already forked AstralRinth
forked from didirus/AstralRinth
Initial work on site moderation improvements (#410)
This commit is contained in:
@@ -151,7 +151,12 @@ pub fn notifications_config(cfg: &mut web::ServiceConfig) {
|
||||
}
|
||||
|
||||
pub fn moderation_config(cfg: &mut web::ServiceConfig) {
|
||||
cfg.service(web::scope("moderation").service(moderation::get_projects));
|
||||
cfg.service(
|
||||
web::scope("moderation")
|
||||
.service(moderation::get_projects)
|
||||
.service(moderation::ban_user)
|
||||
.service(moderation::unban_user),
|
||||
);
|
||||
}
|
||||
|
||||
pub fn reports_config(cfg: &mut web::ServiceConfig) {
|
||||
|
||||
Reference in New Issue
Block a user