diff --git a/src/main.rs b/src/main.rs index 9ce76c0..6f9b667 100644 --- a/src/main.rs +++ b/src/main.rs @@ -14,7 +14,7 @@ extern crate diesel_migrations; #[cfg(feature = "ssr")] #[tokio::main] async fn main() { - use axum::{routing::{post, get}, Router}; + use axum::{routing::get, Router}; use leptos::*; use leptos_axum::{generate_route_list, LeptosRoutes}; use libretunes::app::*; @@ -49,7 +49,6 @@ async fn main() { let routes = generate_route_list(App); let app = Router::new() - .route("/api/*fn_name", post(leptos_axum::handle_server_fns)) .leptos_routes(&leptos_options, routes, App) .route("/assets/*uri", get(|uri| get_static_file(uri, ""))) .layer(auth_layer)