9b65d4bb41
- All definitions have been replaced by classes: http://graphql-ruby.org/schema/class_based_api.html - Authorization & Presentation have been refactored to work in the class based system - Loaders have been replaced by resolvers - Times are now coersed as ISO 8601
7 lines
254 B
Ruby
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 => '/'
|