🍱 Incorpora el conjunto "minimal" de componentes
This commit is contained in:
parent
ee46003c15
commit
c657970b5a
9 changed files with 32 additions and 10 deletions
|
|
@ -1,4 +1,5 @@
|
|||
use pagetop::prelude::*;
|
||||
use pagetop_minimal::component::*;
|
||||
|
||||
pub_handle!(MODULE_DEMOHOME);
|
||||
|
||||
|
|
@ -21,6 +22,10 @@ impl ModuleTrait for HomeDemo {
|
|||
Some(l("module_description"))
|
||||
}
|
||||
|
||||
fn dependencies(&self) -> Vec<ModuleStaticRef> {
|
||||
vec![&pagetop_minimal::Minimal]
|
||||
}
|
||||
|
||||
fn configure_service(&self, cfg: &mut server::web::ServiceConfig) {
|
||||
serve_static_files!(cfg, "/homedemo", bundle_homedemo);
|
||||
cfg.route("/", server::web::get().to(demo));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue