Skip to content

Commit

Permalink
Allow GraphQL endpoint to be conditionally included. Closes #209
Browse files Browse the repository at this point in the history
  • Loading branch information
zachfeldman committed Aug 21, 2023
1 parent 3ac066f commit 2e3151c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

Spree::Core::Engine.routes.draw do
post '/graphql', to: 'graphql#execute'
post '/graphql', to: 'graphql#execute' if Rails.configuration.include_graphql_endpoint
end

0 comments on commit 2e3151c

Please sign in to comment.