Skip to content

Commit

Permalink
Enable GraphiQL in all environments
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescmartinez committed Apr 27, 2019
1 parent 4f6bb1b commit 6e3a897
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ gem "cloudinary", require: false
gem "factory_bot_rails"
gem "friendly_id"
gem "graphql"
gem "graphiql-rails"
gem "httparty"
gem "icalendar"
gem "jbuilder"
Expand All @@ -27,7 +28,6 @@ gem "uglifier"

group :development do
gem "erb_lint", require: false
gem "graphiql-rails"
gem "listen"
gem "rubocop"
gem "rubocop-rspec"
Expand Down
2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Rails.application.routes.draw do
mount GraphiQL::Rails::Engine, at: "/graphiql", graphql_path: "/graphql" if Rails.env.development?
mount GraphiQL::Rails::Engine, at: "/graphiql", graphql_path: "/graphql"
post "/graphql", to: "graphql#execute"

namespace :api, defaults: { format: :json } do
Expand Down

0 comments on commit 6e3a897

Please sign in to comment.