🍱 Incorpora el conjunto "minimal" de componentes

This commit is contained in:
Manuel Cillero 2023-05-14 18:15:57 +02:00
parent ee46003c15
commit c657970b5a
9 changed files with 32 additions and 10 deletions

View file

@ -1,4 +1,5 @@
use pagetop::prelude::*;
use pagetop_minimal::component::*;
pub_handle!(MODULE_USER);
@ -21,6 +22,10 @@ impl ModuleTrait for User {
Some(l("module_description"))
}
fn dependencies(&self) -> Vec<ModuleStaticRef> {
vec![&pagetop_minimal::Minimal]
}
fn configure_service(&self, cfg: &mut server::web::ServiceConfig) {
cfg.route("/user/login", server::web::get().to(login));
}