actix / actix-web

Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust.
https://actix.rs
Apache License 2.0
21.6k stars 1.67k forks source link

More examples for middleware #865

Closed Exegetech closed 5 years ago

Exegetech commented 5 years ago

Hello, can we put more examples on middleware section for actix-web 1.0.0? I am currently trying to implement a flash middleware and an auth check middleware that guard specific routes.

Looking at the middleware examples, I still don't understand how to properly do this. Any help is appreciated. If I can implement it correctly I will send a PR for those flash and auth middleware examples.

Exegetech commented 5 years ago

Sorry wrong repo