Closed LeoniePhiline closed 2 months ago
The mutable app state example at https://ntex.rs/docs/application#shared-mutable-state mentions web::Data.
web::Data
Since what is being created is a plain struct, the example's comment is reworded to // Note: app state created _outside_ HttpServer::new closure.
// Note: app state created _outside_ HttpServer::new closure
Closes https://github.com/ntex-rs/website/issues/10
Thanks!
The mutable app state example at https://ntex.rs/docs/application#shared-mutable-state mentions
web::Data
.Since what is being created is a plain struct, the example's comment is reworded to
// Note: app state created _outside_ HttpServer::new closure
.Closes https://github.com/ntex-rs/website/issues/10