♻️ Define acciones de forma coherente

This commit is contained in:
Manuel Cillero 2023-06-06 20:51:07 +02:00
parent a669608783
commit 163302f4ea
26 changed files with 190 additions and 192 deletions

View file

@ -26,8 +26,8 @@ impl ModuleTrait for Node {
cfg.route("/node", server::web::get().to(node));
}
fn actions(&self) -> Vec<HookAction> {
vec![hook_action!(BeforeRenderPageHook => before_render_page, -1)]
fn actions(&self) -> Vec<Action> {
vec![action!(ActionBeforeRenderPage => before_render_page, -1)]
}
fn migrations(&self) -> Vec<MigrationItem> {