[init] Created dioxus project
This commit is contained in:
8
api/src/lib.rs
Normal file
8
api/src/lib.rs
Normal file
@@ -0,0 +1,8 @@
|
||||
//! This crate contains all shared fullstack server functions.
|
||||
use dioxus::prelude::*;
|
||||
|
||||
/// Echo the user input on the server.
|
||||
#[server(Echo)]
|
||||
pub async fn echo(input: String) -> Result<String, ServerFnError> {
|
||||
Ok(input)
|
||||
}
|
Reference in New Issue
Block a user