You've already forked AstralRinth
forked from didirus/AstralRinth
Statistics route (#453)
* Statistics route Staging: https://i.imgur.com/YWx9uPA.png * Remove users * Address comment
This commit is contained in:
@@ -13,6 +13,7 @@ mod notifications;
|
||||
pub(crate) mod project_creation;
|
||||
mod projects;
|
||||
mod reports;
|
||||
mod statistics;
|
||||
mod tags;
|
||||
mod teams;
|
||||
mod updates;
|
||||
@@ -42,6 +43,7 @@ pub fn v2_config(cfg: &mut web::ServiceConfig) {
|
||||
.configure(moderation_config)
|
||||
.configure(reports_config)
|
||||
.configure(notifications_config)
|
||||
.configure(statistics_config)
|
||||
.configure(admin_config)
|
||||
.configure(midas_config),
|
||||
);
|
||||
@@ -169,6 +171,10 @@ pub fn reports_config(cfg: &mut web::ServiceConfig) {
|
||||
cfg.service(reports::delete_report);
|
||||
}
|
||||
|
||||
pub fn statistics_config(cfg: &mut web::ServiceConfig) {
|
||||
cfg.service(statistics::get_stats);
|
||||
}
|
||||
|
||||
pub fn admin_config(cfg: &mut web::ServiceConfig) {
|
||||
cfg.service(
|
||||
web::scope("admin")
|
||||
|
||||
Reference in New Issue
Block a user