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