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 USER_MODULE: &str = "pagetop-user::module::user";
localize!("src/locales");
mod migration;
@ -7,6 +9,10 @@ mod migration;
pub struct User;
impl ModuleTrait for User {
fn handler(&self) -> &'static str {
USER_MODULE
}
fn name(&self) -> String {
l("module_name")
}