9 lines
232 B
Rust
9 lines
232 B
Rust
//! This crate contains all shared fullstack server functions.
|
|
use dioxus::prelude::*;
|
|
|
|
/// Echo the user input on the server.
|
|
#[post("/api/echo")]
|
|
pub async fn echo(input: String) -> Result<String, ServerFnError> {
|
|
Ok(input)
|
|
}
|