Modifica la identificación de módulos
This commit is contained in:
parent
0f185887a6
commit
9e65f89d2d
14 changed files with 46 additions and 48 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue