No description
Find a file
2024-07-05 10:14:54 +02:00
macros feat: middleware 2024-07-05 10:11:17 +02:00
src feat: middleware 2024-07-05 10:11:17 +02:00
tests feat: middleware 2024-07-05 10:11:17 +02:00
.editorconfig Initial commit 2024-06-15 11:22:26 +02:00
.gitignore feat: middleware 2024-07-05 10:11:17 +02:00
.rustfmt.toml feat: middleware 2024-07-05 10:11:17 +02:00
Cargo.lock fix: version bump 2024-07-05 10:14:54 +02:00
Cargo.toml fix: version bump 2024-07-05 10:14:54 +02:00
LICENSE feat: middleware 2024-07-05 10:11:17 +02:00
README.md feat: middleware 2024-07-05 10:11:17 +02:00

whoami

Library providing utilities for using leptos_reactive runtime inside axum handlers. Also automaticly uses provide_context to make the request Parts available inside any function called by the handler.

But why?

When using something like the rstml-component crate it is usefull to be able to extract anything from parts inside any component. For example inside nav bar extract the path to be able to highlight active route. Additionally you can create a middleware layer that can add to the context things like IsLoggedIn or other information about the request that is used within more then one function/component called by the handler.