Sha256: 084305c07698df0039cf864d326713cce383b84536d7e9c7f6ab4314c28f7d0f
Contents?: true
Size: 1.21 KB
Versions: 4
Compression:
Stored size: 1.21 KB
Contents
# frozen_string_literal: true Rails.application.routes.draw do mount_graphql_devise_for 'User', at: '/api/v1/graphql_auth', operations: { login: Mutations::Login, sign_up: Mutations::SignUp }, additional_mutations: { register_confirmed_user: Mutations::RegisterConfirmedUser }, additional_queries: { public_user: Resolvers::PublicUser } mount_graphql_devise_for( 'Admin', authenticatable_type: Types::CustomAdminType, skip: [:sign_up, :check_password_token], operations: { confirm_account: Resolvers::ConfirmAdminAccount, update_password_with_token: Mutations::ResetAdminPasswordWithToken }, at: '/api/v1/admin/graphql_auth' ) mount_graphql_devise_for( 'Guest', only: [:login, :logout, :sign_up], at: '/api/v1/guest/graphql_auth' ) mount_graphql_devise_for( 'Users::Customer', only: [:login], at: '/api/v1/user_customer/graphql_auth' ) get '/api/v1/graphql', to: 'api/v1/graphql#graphql' post '/api/v1/graphql', to: 'api/v1/graphql#graphql' post '/api/v1/interpreter', to: 'api/v1/graphql#interpreter' post '/api/v1/failing', to: 'api/v1/graphql#failing_resource_name' end
Version data entries
4 entries across 4 versions & 1 rubygems