Hotfix: route new moderation routes (#103)
This commit is contained in:
parent
0500994def
commit
92e1847c59
@ -255,7 +255,8 @@ async fn main() -> std::io::Result<()> {
|
||||
.configure(routes::mods_config)
|
||||
.configure(routes::versions_config)
|
||||
.configure(routes::teams_config)
|
||||
.configure(routes::users_config),
|
||||
.configure(routes::users_config)
|
||||
.configure(routes::moderation_config),
|
||||
)
|
||||
.default_service(web::get().to(routes::not_found))
|
||||
})
|
||||
|
||||
@ -74,6 +74,14 @@ pub fn teams_config(cfg: &mut web::ServiceConfig) {
|
||||
);
|
||||
}
|
||||
|
||||
pub fn moderation_config(cfg: &mut web::ServiceConfig) {
|
||||
cfg.service(
|
||||
web::scope("moderation")
|
||||
.service(moderation::mods)
|
||||
.service(moderation::versions),
|
||||
);
|
||||
}
|
||||
|
||||
#[derive(thiserror::Error, Debug)]
|
||||
pub enum ApiError {
|
||||
#[error("Error while uploading file")]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user