Files
dg-rust-workspace/hot-dog/packages/api/src/lib.rs
T
2026-11-24 22:15:05 +08:00

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)
}