How to implement middleware using Server Functions? #3754
-
How to implement middleware using Server Functions? |
Beta Was this translation helpful? Give feedback.
Answered by
gbj
Mar 23, 2025
Replies: 3 comments 3 replies
-
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
erlangparasu
-
My project can't find a middleware macro Those are my deps (leptos actix default) [dependencies]
actix-files = { version = "0.6", optional = true }
actix-web = { version = "4", optional = true, features = ["macros"] }
console_error_panic_hook = "0.1"
leptos = { version = "0.7" }
leptos_meta = { version = "0.7" }
leptos_actix = { version = "0.7", optional = true }
tokio = { version = "1", optional = true}
leptos_router = { version = "0.7" }
wasm-bindgen = "=0.2.100"
[features]
csr = ["leptos/csr"]
hydrate = ["leptos/hydrate"]
ssr = [
"dep:actix-files",
"dep:actix-web",
"dep:leptos_actix",
"dep:tokio",
"leptos/ssr",
"leptos_actix/dont-use-islands-router",
"leptos_meta/ssr",
"leptos_router/ssr",
] |
Beta Was this translation helpful? Give feedback.
1 reply
-
@gbj is possible to pass more than one middleware per SF ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here's an example.