Modifica la identificación de módulos

This commit is contained in:
Manuel Cillero 2022-03-01 17:50:36 +01:00
parent 0f185887a6
commit 9e65f89d2d
14 changed files with 46 additions and 48 deletions

View file

@ -5,16 +5,16 @@ localize!("en-US", "src/base/module/homepage/locales");
pub struct HomepageModule;
impl Module for HomepageModule {
fn id(&self) -> &'static str {
fn name(&self) -> &'static str {
"homepage"
}
fn name(&self) -> String {
l("module_name")
fn fullname(&self) -> String {
l("module_fullname")
}
fn description(&self) -> String {
l("module_desc")
l("module_description")
}
fn configure_module(&self, cfg: &mut server::web::ServiceConfig) {