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())