feat: middleware

This commit is contained in:
DavidOnTop 2024-07-05 10:11:17 +02:00
parent 7c76a4a04e
commit 4e65532679
No known key found for this signature in database
GPG key ID: 5D05538A45D5149F
11 changed files with 138 additions and 39 deletions

View file

@ -1,6 +1,7 @@
mod reactive;
/// macro that when applied on an axum handler will provide leptos_reactive runtime and will allow you to use `leptos_reactive_axum::extract` by providing a context holding request parts
/// WARNING: inserts .unwrap() into handlers to make types the same as in function arguments, use middleware to avoid this
#[proc_macro_attribute]
pub fn reactive(
attr: proc_macro::TokenStream,