loco-rs / loco

🚂 🦀 The one-person framework for Rust for side-projects and startups
https://loco.rs
Apache License 2.0
5.35k stars 226 forks source link

Refactor middlewares #785

Closed kaplanelad closed 1 month ago

kaplanelad commented 1 month ago

To streamline the middleware setup, we are centralizing all middleware management and shifting the configuration responsibilities directly to the middleware itself. This approach simplifies the process and improves maintainability.

Key Improvements

Improvements:

Default Middleware Settings:

I have implemented integration tests for most of the middleware components.

TBD: