mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-31 00:00:10 +02:00
update examples
This commit is contained in:
@@ -34,7 +34,7 @@ async fn main() {
|
||||
.data(StarWars::new())
|
||||
.finish();
|
||||
|
||||
let app = Router::new()
|
||||
let app = Router::without_state()
|
||||
.route("/", get(graphql_playground).post(graphql_handler))
|
||||
.layer(Extension(schema));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user