summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2018-12-13 10:12:13 +0000
committerPhil Hughes <me@iamphill.com>2018-12-13 10:12:13 +0000
commit744f6ed12bf1ce543b4c903d27cfd8362e91795d (patch)
treeaea590d166e5610ddb5b030f7579343adba3dccf /config
parent2bb468d6b91e164eb8144877015961fe40b2709f (diff)
downloadgitlab-ce-744f6ed12bf1ce543b4c903d27cfd8362e91795d.tar.gz
Enable GraphQL API endpoint
Diffstat (limited to 'config')
-rw-r--r--config/routes/api.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes/api.rb b/config/routes/api.rb
index b1aebf4d606..5398e726398 100644
--- a/config/routes/api.rb
+++ b/config/routes/api.rb
@@ -1,4 +1,4 @@
-constraints(::Constraints::FeatureConstrainer.new(:graphql)) do
+constraints(::Constraints::FeatureConstrainer.new(:graphql, nil, true)) do
post '/api/graphql', to: 'graphql#execute'
mount GraphiQL::Rails::Engine, at: '/-/graphql-explorer', graphql_path: '/api/graphql'
end