2018-12-14 08:27:26 -05:00
|
|
|
constraints(::Constraints::FeatureConstrainer.new(:graphql, default_enabled: true)) do
|
2018-05-23 03:55:14 -04:00
|
|
|
post '/api/graphql', to: 'graphql#execute'
|
|
|
|
mount GraphiQL::Rails::Engine, at: '/-/graphql-explorer', graphql_path: '/api/graphql'
|
|
|
|
end
|
2017-08-16 09:04:41 -04:00
|
|
|
|
2019-06-24 12:53:17 -04:00
|
|
|
::API::API.logger Rails.logger
|
|
|
|
mount ::API::API => '/'
|