Fix server fns

This commit is contained in:
Florian RICHER 2023-12-08 23:20:30 +01:00
parent 9aa0c5a929
commit cde7d8db7f

View file

@ -24,6 +24,7 @@ cfg_if! {
let site_root = &leptos_options.site_root;
let routes = &routes;
App::new()
.route("/api/{tail:.*}", leptos_actix::handle_server_fns())
.leptos_routes(leptos_options.to_owned(), routes.to_owned(), || view! { <App/> })
.service(Files::new("/", site_root))
.wrap(middleware::Compress::default())