feat: with updated stuff

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2023-08-20 21:19:28 +02:00
parent 8ee2ca5c14
commit 9ae09deae7
11 changed files with 544 additions and 462 deletions

View File

@@ -24,9 +24,9 @@ async fn main() {
let app = Router::new()
.route("/api/*fn_name", post(leptos_axum::handle_server_fns))
.leptos_routes(leptos_options.clone(), routes, |cx| view! { cx, <App/> })
.leptos_routes(&leptos_options.clone(), routes, |cx| view! { cx, <App/> })
.fallback(file_and_error_handler)
.layer(Extension(Arc::new(leptos_options)));
.with_state(leptos_options);
// run our app with hyper
// `axum::Server` is a re-export of `hyper::Server`