1
0
This commit is contained in:
aecsocket
2025-10-24 11:27:44 -07:00
committed by GitHub
parent 03b0eba695
commit ab886a5ea8
2 changed files with 7 additions and 2 deletions

View File

@@ -77,8 +77,12 @@ pub fn root_config(cfg: &mut web::ServiceConfig) {
}.boxed_local()
})
);
cfg.service(index::index_get);
cfg.service(Files::new("/", "assets/"));
cfg.service(
web::scope("")
.wrap(default_cors())
.service(index::index_get)
.service(Files::new("/", "assets/")),
);
}
#[derive(thiserror::Error, Debug)]

View File

@@ -58,6 +58,7 @@ pub fn utoipa_config(
) {
cfg.service(
utoipa_actix_web::scope("/v3/analytics")
.wrap(default_cors())
.configure(analytics_get::config),
);
}