Skip to content

Commit

Permalink
chore: enable subscriptions endpoint on graphiql (#3519)
Browse files Browse the repository at this point in the history
Signed-off-by: Wei Zhang <[email protected]>
  • Loading branch information
zwpaper authored Dec 6, 2024
1 parent ff5a71d commit 4e9c151
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ee/tabby-webserver/src/routes/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 4e9c151

Please sign in to comment.