Skip to content

Commit

Permalink
fix(qe): correct /status route response body (#4246)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertCraigie authored Oct 25, 2023
1 parent de24491 commit f365956
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion query-engine/query-engine/src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ pub(crate) async fn routes(cx: Arc<PrismaContext>, req: Request<Body>) -> Result
let mut res = match (req.method(), req.uri().path()) {
(&Method::POST, "/") => request_handler(cx, req).await?,
(&Method::GET, "/") if cx.enabled_features.contains(Feature::Playground) => playground_handler(),
(&Method::GET, "/status") => build_json_response(StatusCode::OK, r#"{"status":"ok"}"#),
(&Method::GET, "/status") => build_json_response(StatusCode::OK, &json!({"status": "ok"})),

(&Method::GET, "/sdl") => {
let schema = render_graphql_schema(cx.query_schema());
Expand Down

0 comments on commit f365956

Please sign in to comment.