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() }.boxed_local()
}) })
); );
cfg.service(index::index_get); cfg.service(
cfg.service(Files::new("/", "assets/")); web::scope("")
.wrap(default_cors())
.service(index::index_get)
.service(Files::new("/", "assets/")),
);
} }
#[derive(thiserror::Error, Debug)] #[derive(thiserror::Error, Debug)]

View File

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