Missed another couple imports
This commit is contained in:
parent
2edc5b3b8b
commit
79faad4aac
|
@ -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 }
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
Binary file not shown.
|
@ -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 || {
|
||||||
|
|
Loading…
Reference in New Issue