Skip to content

Commit

Permalink
add missing server fn registration
Browse files Browse the repository at this point in the history
  • Loading branch information
gbj committed Jan 7, 2024
1 parent 5248cc6 commit 1ce1127
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions integrations/actix/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1357,6 +1357,14 @@ impl LeptosRoutes for &mut ServiceConfig {
);
}
}

// register server functions
for (path, _) in server_fn::actix::server_fn_paths() {
let additional_context = additional_context.clone();
let handler = handle_server_fns_with_context(additional_context);
router = router.route(path, handler);
}

router
}
}
Expand Down

0 comments on commit 1ce1127

Please sign in to comment.