From f4cc890e5da9f772748327e889fdd7e28971fbea Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Tue, 13 Sep 2022 11:38:48 +0200 Subject: [PATCH] fix(graphql): add graphql doc redirect --- config/routes.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/config/routes.rb b/config/routes.rb index 50093db4d..447a7b4ef 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -226,6 +226,7 @@ Rails.application.routes.draw do # API # + get 'graphql/schema' => redirect('/graphql/schema/index.html') authenticated :user, lambda { |user| user.administrateur? } do mount GraphqlPlayground::Rails::Engine, at: "/graphql", graphql_path: "/api/v2/graphql" end