summaryrefslogtreecommitdiff
path: root/config/routes/api.rb
blob: b1aebf4d606f8e18f45b2a7450c0e68945101a5a (plain)
1
2
3
4
5
6
7
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 => '/'