💥 Replace action! macro with actions!

This commit is contained in:
Manuel Cillero 2023-09-03 09:00:00 +02:00
parent 507015d5c9
commit c50cfa985f
8 changed files with 22 additions and 15 deletions

View file

@ -30,7 +30,7 @@ impl ModuleTrait for Minimal {
}
fn actions(&self) -> Vec<Action> {
vec![action!(ActionAfterPrepareBody => after_prepare_body, 99)]
actions![ActionAfterPrepareBody::with(after_prepare_body).with_weight(99)]
}
fn configure_service(&self, scfg: &mut service::web::ServiceConfig) {