gitlab-org--gitlab-foss/config/routes/api.rb
Robert Speicher 2d738b6f84
Copy routes from EE
This ensures all routes are defined in both CE and EE, with EE-specific
routes being wrapped in `Gitlab.ee` blocks.
2019-06-26 11:29:41 -05:00

7 lines
281 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 => '/'