pub fn register_server_fn_export_data() -> &'static strAvailable on non-WebAssembly only.
Expand description
Register this server function with a router
This function should be called during application startup to register the server function handler with the HTTP router.
§Example
ⓘ
use axum::{Router, routing::post};
let app = Router::new()
.route("/api/server_fn/get_user", post(register_server_fn_get_user));