Merge pull request #7759 from tchak/add-graphql-doc-redirect

fix(graphql): add graphql doc redirect
This commit is contained in:
LeSim 2022-09-13 11:59:48 +02:00 committed by GitHub
commit 6d80a848c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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