summaryrefslogtreecommitdiff
path: root/config/routes
diff options
context:
space:
mode:
authorcharlie ablett <cablett@gitlab.com>2019-07-09 12:45:23 +0000
committerFatih Acet <acetfatih@gmail.com>2019-07-09 12:45:23 +0000
commit639ab5214cb569dce70080020e3181946e5d3bf1 (patch)
treef5fc02b28a9d16b1139056858e5db7280add7ed9 /config/routes
parent630a8e80501aff46526086e8f2c72bb846780390 (diff)
downloadgitlab-ce-639ab5214cb569dce70080020e3181946e5d3bf1.tar.gz
Remove `:graphql` feature flag
- Remove `FeatureConstrainer` call wrapping api endpoint - Remove `Feature.enabled?(:graphql)` conditionals in back and frontend - Modify graphql test to be graphql flag agnostic - Remove api routing spec - Remove frontend feature flag via `gon`
Diffstat (limited to 'config/routes')
-rw-r--r--config/routes/api.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/config/routes/api.rb b/config/routes/api.rb
index 3ba9176d943..c6c17b5708e 100644
--- a/config/routes/api.rb
+++ b/config/routes/api.rb
@@ -1,7 +1,5 @@
-constraints(::Constraints::FeatureConstrainer.new(:graphql, default_enabled: true)) do
- post '/api/graphql', to: 'graphql#execute'
- mount GraphiQL::Rails::Engine, at: '/-/graphql-explorer', graphql_path: '/api/graphql'
-end
+post '/api/graphql', to: 'graphql#execute'
+mount GraphiQL::Rails::Engine, at: '/-/graphql-explorer', graphql_path: '/api/graphql'
::API::API.logger Rails.logger
mount ::API::API => '/'