gitlab-org--gitlab-foss/config/routes/api.rb
Bob Van Landuyt 2e8d0153cd Pass on arguments passed to the FeatureConstrainer
All arguments passed to the `FeatureConstrainer` will be passed on to
the `Feature.enabled?` check.
2018-12-14 14:35:05 +01:00

7 lines
277 B
Ruby

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
API::API.logger Rails.logger
mount API::API => '/'