Files
progress-test/config/routes.rb
João Geonizeli 0681e5f766 graphql setup
2022-07-21 10:55:38 -03:00

11 lines
314 B
Ruby

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