🚧 Incopora recursos estáticos con "use_static!()"

This commit is contained in:
Manuel Cillero 2023-06-23 12:31:43 +02:00
parent 32d068065e
commit bcf403ab50
10 changed files with 35 additions and 21 deletions

View file

@ -4,7 +4,7 @@ use_handle!(THEME_BOOTSIER);
use_locale!(LOCALE_BOOTSIER, "src/locale");
include!(concat!(env!("OUT_DIR"), "/bootsier.rs"));
use_static!(bootsier);
pub struct Bootsier;
@ -22,7 +22,7 @@ impl ModuleTrait for Bootsier {
}
fn configure_service(&self, cfg: &mut service::web::ServiceConfig) {
serve_static_files!(cfg, "/bootsier", bundle_bootsier);
serve_static_files!(cfg, "/bootsier", bootsier);
}
}