mirror of
https://github.com/actix/examples
synced 2025-06-28 09:50:36 +02:00
rename web::State to web::Data
This commit is contained in:
@ -45,7 +45,7 @@ fn handle_post_1(params: web::Form<MyParams>) -> Result<HttpResponse> {
|
||||
|
||||
/// State and POST Params
|
||||
fn handle_post_2(
|
||||
state: web::State<AppState>,
|
||||
state: web::Data<AppState>,
|
||||
params: web::Form<MyParams>,
|
||||
) -> HttpResponse {
|
||||
HttpResponse::Ok().content_type("text/plain").body(format!(
|
||||
|
Reference in New Issue
Block a user