fix nested routers

This commit is contained in:
Evan Almloff committed 2023-07-13 19:29:43 -07:00
1 parent 8d166cf40d
commit 128f3e4425
3 files changed
+27 -14

No files matched your search

@@ -41,10 +41,8 @@ fn app(cx: Scope<AppProps>) -> Element {
}
#[server(PostServerData)]
async fn post_server_data(
#[extract] axum::extract::Host(host): axum::extract::Host,
data: String,
) -> Result<(), ServerFnError> {
async fn post_server_data(data: String) -> Result<(), ServerFnError> {
let axum::extract::Host(host): axum::extract::Host = extract()?;
println!("Server received: {}", data);
println!("{:?}", host);