Libera la versión de desarrollo 0.0.2
This commit is contained in:
parent
516d9683da
commit
fbc6ab2adf
77 changed files with 651 additions and 161 deletions
24
pagetop-admin/src/lib.rs
Normal file
24
pagetop-admin/src/lib.rs
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
use pagetop::prelude::*;
|
||||
|
||||
localize!("src/locales");
|
||||
|
||||
mod summary;
|
||||
|
||||
pub struct AdminModule;
|
||||
|
||||
impl ModuleTrait for AdminModule {
|
||||
fn fullname(&self) -> String {
|
||||
l("module_fullname")
|
||||
}
|
||||
|
||||
fn description(&self) -> Option<String> {
|
||||
Some(l("module_description"))
|
||||
}
|
||||
|
||||
fn configure_module(&self, cfg: &mut app::web::ServiceConfig) {
|
||||
cfg.service(
|
||||
app::web::scope("/admin")
|
||||
.route("", app::web::get().to(summary::summary))
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue