♻️ Relocate macro codes based on function
This commit is contained in:
parent
f2031307d7
commit
c9f71685b4
16 changed files with 163 additions and 137 deletions
|
|
@ -27,7 +27,7 @@ impl ModuleTrait for HomeDemo {
|
|||
}
|
||||
|
||||
fn configure_service(&self, scfg: &mut service::web::ServiceConfig) {
|
||||
serve_static_files!(scfg, "/homedemo", homedemo);
|
||||
static_files_service!(scfg, "/homedemo", homedemo);
|
||||
scfg.route("/", service::web::get().to(demo));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue