Fix server fns
This commit is contained in:
parent
9aa0c5a929
commit
cde7d8db7f
1 changed files with 1 additions and 0 deletions
|
@ -24,6 +24,7 @@ cfg_if! {
|
||||||
let site_root = &leptos_options.site_root;
|
let site_root = &leptos_options.site_root;
|
||||||
let routes = &routes;
|
let routes = &routes;
|
||||||
App::new()
|
App::new()
|
||||||
|
.route("/api/{tail:.*}", leptos_actix::handle_server_fns())
|
||||||
.leptos_routes(leptos_options.to_owned(), routes.to_owned(), || view! { <App/> })
|
.leptos_routes(leptos_options.to_owned(), routes.to_owned(), || view! { <App/> })
|
||||||
.service(Files::new("/", site_root))
|
.service(Files::new("/", site_root))
|
||||||
.wrap(middleware::Compress::default())
|
.wrap(middleware::Compress::default())
|
||||||
|
|
Loading…
Reference in a new issue