You've already forked AstralRinth
forked from didirus/AstralRinth
Fix search rules, register download route (#346)
This commit is contained in:
@@ -40,7 +40,8 @@ pub fn v2_config(cfg: &mut web::ServiceConfig) {
|
||||
.configure(users_config)
|
||||
.configure(moderation_config)
|
||||
.configure(reports_config)
|
||||
.configure(notifications_config),
|
||||
.configure(notifications_config)
|
||||
.configure(admin_config),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -156,6 +157,13 @@ pub fn reports_config(cfg: &mut web::ServiceConfig) {
|
||||
cfg.service(reports::delete_report);
|
||||
}
|
||||
|
||||
pub fn admin_config(cfg: &mut web::ServiceConfig) {
|
||||
cfg.service(
|
||||
web::scope("admin")
|
||||
.service(admin::count_download)
|
||||
);
|
||||
}
|
||||
|
||||
#[derive(thiserror::Error, Debug)]
|
||||
pub enum ApiError {
|
||||
#[error("Environment Error")]
|
||||
|
||||
Reference in New Issue
Block a user