fix(graphql): add graphql doc redirect
This commit is contained in:
parent
f55bf4c451
commit
f4cc890e5d
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue