Modifica identificador por handler()

This commit is contained in:
Manuel Cillero 2022-05-07 23:16:00 +02:00
parent e8226daa4b
commit 68a347382d
40 changed files with 200 additions and 152 deletions

View file

@ -1,5 +1,7 @@
use pagetop::prelude::*;
pub const NODE_MODULE: &str = "pagetop-node::module::node";
localize!("src/locales");
//mod entity;
@ -8,6 +10,10 @@ mod migration;
pub struct Node;
impl ModuleTrait for Node {
fn handler(&self) -> &'static str {
NODE_MODULE
}
fn name(&self) -> String {
l("module_name")
}