branch: main
api.rs
168 bytesRaw
use leptos::prelude::*;

#[server(SayHello)]
pub async fn say_hello(num: i32) -> Result<String, ServerFnError> {
    Ok(format!("Hello from the API!!! I got {num}"))
}