Missed another couple imports

This commit is contained in:
Ben Wishovich 2022-11-30 22:41:31 -08:00
parent 2edc5b3b8b
commit 79faad4aac
4 changed files with 1 additions and 6 deletions

View File

@ -24,7 +24,7 @@ serde = { version = "1.0.148", features = ["derive"] }
serde_json = "1.0.89" serde_json = "1.0.89"
gloo-net = { version = "0.2.5", features = ["http"] } gloo-net = { version = "0.2.5", features = ["http"] }
reqwest = { version = "0.11.13", features = ["json"] } reqwest = { version = "0.11.13", features = ["json"] }
axum = { version = "0.6.1", features=["macros"], optional = true } axum = { version = "0.6.1", optional = true }
tower = { version = "0.4.13", optional = true } tower = { version = "0.4.13", optional = true }
tower-http = { version = "0.3.4", features = ["fs"], optional = true } tower-http = { version = "0.3.4", features = ["fs"], optional = true }
tokio = { version = "1.22.0", features = ["full"], optional = true } tokio = { version = "1.22.0", features = ["full"], optional = true }

View File

@ -12,8 +12,6 @@ if #[cfg(feature = "ssr")] {
use http::StatusCode; use http::StatusCode;
use std::net::SocketAddr; use std::net::SocketAddr;
use tower_http::services::ServeDir; use tower_http::services::ServeDir;
// use leptos_hackernews_axum::handlers::{file_handler, get_static_file_handler};
// use leptos_hackernews_axum::handlers::{static_service, pkg_service};
#[tokio::main] #[tokio::main]
async fn main() { async fn main() {

View File

@ -45,9 +45,6 @@ pub async fn handle_server_fns(
body: Bytes, body: Bytes,
// req: Request<Body>, // req: Request<Body>,
) -> impl IntoResponse { ) -> impl IntoResponse {
// Axum Path extractor doesn't remove the first slash from the path, while Actix does
let fn_name = fn_name.replace("/", "");
let (tx, rx) = futures::channel::oneshot::channel(); let (tx, rx) = futures::channel::oneshot::channel();
std::thread::spawn({ std::thread::spawn({
move || { move || {