🚧 Incopora recursos estáticos con "use_static!()"
This commit is contained in:
parent
32d068065e
commit
bcf403ab50
10 changed files with 35 additions and 21 deletions
|
|
@ -4,7 +4,7 @@ pub mod component;
|
|||
|
||||
use_handle!(MODULE_MEGAMENU);
|
||||
|
||||
include!(concat!(env!("OUT_DIR"), "/megamenu.rs"));
|
||||
use_static!(megamenu);
|
||||
|
||||
pub struct MegaMenu;
|
||||
|
||||
|
|
@ -18,6 +18,6 @@ impl ModuleTrait for MegaMenu {
|
|||
}
|
||||
|
||||
fn configure_service(&self, cfg: &mut service::web::ServiceConfig) {
|
||||
serve_static_files!(cfg, "/megamenu", bundle_megamenu);
|
||||
serve_static_files!(cfg, "/megamenu", megamenu);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue