graphql setup

This commit is contained in:
João Geonizeli
2022-07-21 10:55:38 -03:00
parent 705a465292
commit 0681e5f766
21 changed files with 202 additions and 0 deletions

View File

@@ -1,5 +1,10 @@
Rails.application.routes.draw do
devise_for :users, controllers: { omniauth_callbacks: 'users/omniauth_callbacks' }
post "/graphql", to: "graphql#execute"
ActiveAdmin.routes(self)
if Rails.env.development?
mount GraphqlPlayground::Rails::Engine, at: "/playground", graphql_path: "/graphql"
end
end