Actualiza HookItem por HookAction
This commit is contained in:
parent
068f3d8520
commit
166f209dab
8 changed files with 21 additions and 17 deletions
|
|
@ -26,9 +26,9 @@ impl ModuleTrait for Node {
|
|||
cfg.route("/node", app::web::get().to(node));
|
||||
}
|
||||
|
||||
fn actions(&self) -> Vec<HookItem> {
|
||||
fn actions(&self) -> Vec<HookAction> {
|
||||
vec![
|
||||
hook_item!(BeforeRenderPageHook => before_render_page, -1)
|
||||
hook_action!(BeforeRenderPageHook => before_render_page, -1)
|
||||
]
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue