From 4e9c151dd8a5e6f6f0a6116c8f9c95dd156e7ca6 Mon Sep 17 00:00:00 2001 From: Wei Zhang Date: Fri, 6 Dec 2024 14:44:41 +0800 Subject: [PATCH] chore: enable subscriptions endpoint on graphiql (#3519) Signed-off-by: Wei Zhang --- ee/tabby-webserver/src/routes/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ee/tabby-webserver/src/routes/mod.rs b/ee/tabby-webserver/src/routes/mod.rs index c5af006dc581..0c0402ec9355 100644 --- a/ee/tabby-webserver/src/routes/mod.rs +++ b/ee/tabby-webserver/src/routes/mod.rs @@ -69,7 +69,10 @@ pub fn create( .route("/avatar/:id", routing::get(avatar).with_state(ctx.auth())) .nest("/oauth", oauth::routes(ctx.auth())); - let ui = ui.route("/graphiql", routing::get(graphiql("/graphql", None))); + let ui = ui.route( + "/graphiql", + routing::get(graphiql("/graphql", "/subscriptions")), + ); let ui = ui.fallback(ui::handler);