Modifica la estructura de preparación de una app
This commit is contained in:
parent
af9afca777
commit
fcc022d164
42 changed files with 295 additions and 228 deletions
|
|
@ -26,9 +26,9 @@ impl ModuleTrait for Node {
|
|||
cfg.route("/node", app::web::get().to(node));
|
||||
}
|
||||
|
||||
fn actions(&self) -> Vec<ActionItem> {
|
||||
fn actions(&self) -> Vec<HookItem> {
|
||||
vec![
|
||||
action_item!(ActionBeforeRenderPage => before_render_page, -1)
|
||||
hook_item!(BeforeRenderPageHook => before_render_page, -1)
|
||||
]
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue