Skip to content

Commit 8f0450e

Browse files
committedNov 17, 2024
fix actix-web-subscription #1624
1 parent 629f1b7 commit 8f0450e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎actix-web/subscription/src/main.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,13 @@ async fn main() -> std::io::Result<()> {
3535
.service(
3636
web::resource("/")
3737
.guard(guard::Post())
38-
.to(GraphQL::new(schema)),
38+
.to(GraphQL::new(schema.clone())),
3939
)
4040
.service(
4141
web::resource("/")
4242
.guard(guard::Get())
4343
.guard(guard::Header("upgrade", "websocket"))
44+
.app_data(web::Data::new(schema))
4445
.to(index_ws),
4546
)
4647
.service(web::resource("/").guard(guard::Get()).to(index_graphiql))

0 commit comments

Comments
 (0)