add graphql endpoint

This commit is contained in:
João Geonizeli
2021-08-03 20:25:26 -03:00
parent dccca02d1e
commit 5b88865de8
21 changed files with 197 additions and 6 deletions

View File

@@ -1,11 +1,14 @@
# frozen_string_literal: true
Rails.application.routes.draw do
mount GraphqlPlayground::Rails::Engine, at: "/playground", graphql_path: "/graphql" if Rails.env.development?
post "/graphql", to: "graphql#execute"
devise_for :admin_users
namespace :admin do
resources :admin_users
root to: "admin_users#index"
end
devise_for :admin_users
# For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html
end