Module: GraphqlDevise::RouteMounter
- Defined in:
- lib/graphql_devise/route_mounter.rb
Instance Method Summary collapse
Instance Method Details
#mount_graphql_devise_for(resource, options = {}) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/graphql_devise/route_mounter.rb', line 3 def mount_graphql_devise_for(resource, = {}) routing = auth_routing(resource, .delete(:base_controller)) = ResourceLoader.new(resource, , true).call( Types::QueryType, Types::MutationType ) require_introspection_auth() post .at, to: routing get .at, to: routing end |