Merge pull request #7759 from tchak/add-graphql-doc-redirect
fix(graphql): add graphql doc redirect
This commit is contained in:
commit
6d80a848c8
1 changed files with 1 additions and 0 deletions
|
@ -226,6 +226,7 @@ Rails.application.routes.draw do
|
||||||
# API
|
# API
|
||||||
#
|
#
|
||||||
|
|
||||||
|
get 'graphql/schema' => redirect('/graphql/schema/index.html')
|
||||||
authenticated :user, lambda { |user| user.administrateur? } do
|
authenticated :user, lambda { |user| user.administrateur? } do
|
||||||
mount GraphqlPlayground::Rails::Engine, at: "/graphql", graphql_path: "/api/v2/graphql"
|
mount GraphqlPlayground::Rails::Engine, at: "/graphql", graphql_path: "/api/v2/graphql"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue