From cde7d8db7f5d12cb718de338a9f584f289302dad Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Fri, 8 Dec 2023 23:20:30 +0100 Subject: [PATCH] Fix server fns --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index 8ca9f24..53782cf 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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! { }) .service(Files::new("/", site_root)) .wrap(middleware::Compress::default())