debian-mirror-gitlab/config/routes/api.rb
2018-11-08 19:23:39 +05:30

7 lines
254 B
Ruby

constraints(::Constraints::FeatureConstrainer.new(:graphql)) 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 => '/'