Modifica la estructura de preparación de una app

This commit is contained in:
Manuel Cillero 2022-05-08 11:10:18 +02:00
parent af9afca777
commit fcc022d164
42 changed files with 295 additions and 228 deletions

View file

@ -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)
]
}