🚧 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
|
|
@ -5,7 +5,7 @@ pub mod module;
|
|||
|
||||
use_handle!(MODULE_MINIMAL);
|
||||
|
||||
include!(concat!(env!("OUT_DIR"), "/minimal.rs"));
|
||||
use_static!(minimal);
|
||||
|
||||
pub struct Minimal;
|
||||
|
||||
|
|
@ -15,6 +15,6 @@ impl ModuleTrait for Minimal {
|
|||
}
|
||||
|
||||
fn configure_service(&self, cfg: &mut service::web::ServiceConfig) {
|
||||
serve_static_files!(cfg, "/minimal", bundle_minimal);
|
||||
serve_static_files!(cfg, "/minimal", minimal);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue