Sha256: 921633a176ff9a1201ee625493891e3589437ace4cfe6f30ca1a7be7bc06ea75

Contents?: true

Size: 458 Bytes

Versions: 18

Compression:

Stored size: 458 Bytes

Contents

# frozen_string_literal: true

module ActionDispatch::Routing
  class Mapper
    def mount_graphql_devise_for(resource, options = {})
      clean_options = GraphqlDevise::ResourceLoader.new(resource, options, true).call(
        GraphqlDevise::Types::QueryType,
        GraphqlDevise::Types::MutationType
      )

      post clean_options.at, to: 'graphql_devise/graphql#auth'
      get  clean_options.at, to: 'graphql_devise/graphql#auth'
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
graphql_devise-0.18.2 lib/graphql_devise/rails/routes.rb
graphql_devise-0.18.1 lib/graphql_devise/rails/routes.rb
graphql_devise-0.18.0 lib/graphql_devise/rails/routes.rb
graphql_devise-0.17.1 lib/graphql_devise/rails/routes.rb
graphql_devise-0.17.0 lib/graphql_devise/rails/routes.rb
graphql_devise-0.16.0 lib/graphql_devise/rails/routes.rb
graphql_devise-0.15.0 lib/graphql_devise/rails/routes.rb
graphql_devise-0.14.3 lib/graphql_devise/rails/routes.rb
graphql_devise-0.14.2 lib/graphql_devise/rails/routes.rb
graphql_devise-0.14.1 lib/graphql_devise/rails/routes.rb
graphql_devise-0.14.0 lib/graphql_devise/rails/routes.rb
graphql_devise-0.13.6 lib/graphql_devise/rails/routes.rb
graphql_devise-0.13.5 lib/graphql_devise/rails/routes.rb
graphql_devise-0.13.4 lib/graphql_devise/rails/routes.rb
graphql_devise-0.13.3 lib/graphql_devise/rails/routes.rb
graphql_devise-0.13.2 lib/graphql_devise/rails/routes.rb
graphql_devise-0.13.1 lib/graphql_devise/rails/routes.rb
graphql_devise-0.13.0 lib/graphql_devise/rails/routes.rb