fix(graphql): add graphql doc redirect

This commit is contained in:
Paul Chavard 2022-09-13 11:38:48 +02:00
parent f55bf4c451
commit f4cc890e5d

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