use leptos::prelude::*; #[server(SayHello)] pub async fn say_hello(num: i32) -> Result { Ok(format!("Hello from the API!!! I got {num}")) }