Skip to content

Commit 14355bb

Browse files
committed
fix(cloudflare): let the core check for graphiql instead
1 parent 3c5df00 commit 14355bb

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

cloudflare/src/handle.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ lazy_static! {
2323
pub async fn fetch(req: worker::Request, env: worker::Env, _: worker::Context) -> anyhow::Result<worker::Response> {
2424
log::info!("{} {:?}", req.method().to_string(), req.url().map(|u| u.to_string()));
2525
let req = to_request(req).await?;
26-
if req.method() == hyper::Method::GET {
27-
let response = graphiql(&req)?;
28-
return to_response(response).await;
29-
}
3026
let env = Rc::new(env);
3127
let app_ctx = match get_app_ctx(env, &req).await? {
3228
Ok(app_ctx) => app_ctx,

0 commit comments

Comments
 (0)