Sha256: 2bddd46edbeac425d88ae1342c3db26ee6adcff8254912fd66f2b947b6a228b3

Contents?: true

Size: 566 Bytes

Versions: 4

Compression:

Stored size: 566 Bytes

Contents

Rails.application.routes.draw do
  mount_graphql_devise_for 'User', at: '/api/v1/graphql_auth', operations: {
    login:   Mutations::Login,
    sign_up: Mutations::SignUp
  }

  mount_graphql_devise_for(
    'Admin',
    authenticable_type: Types::CustomAdminType,
    skip:               [:sign_up, :check_password_token],
    at:                 '/api/v1/admin/graphql_auth'
  )

  mount_graphql_devise_for(
    'Guest',
    only: [:login, :logout, :sign_up],
    at:   '/api/v1/guest/graphql_auth'
  )

  post '/api/v1/graphql', to: 'api/v1/graphql#graphql'
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
graphql_devise-0.7.0 spec/dummy/config/routes.rb
graphql_devise-0.6.0 spec/dummy/config/routes.rb
graphql_devise-0.5.0 spec/dummy/config/routes.rb
graphql_devise-0.4.1 spec/dummy/config/routes.rb