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:
@ -24,7 +24,7 @@ fn graphiql() -> HttpResponse {
|
||||
}
|
||||
|
||||
fn graphql(
|
||||
st: web::State<Arc<Schema>>,
|
||||
st: web::Data<Arc<Schema>>,
|
||||
data: web::Json<GraphQLRequest>,
|
||||
) -> impl Future<Item = HttpResponse, Error = Error> {
|
||||
web::block(move || {
|
||||
|
Reference in New Issue
Block a user