Libera la versión de desarrollo 0.0.2

This commit is contained in:
Manuel Cillero 2022-03-19 20:10:51 +01:00
parent 516d9683da
commit fbc6ab2adf
77 changed files with 651 additions and 161 deletions

24
pagetop-admin/src/lib.rs Normal file
View 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))
);
}
}