diff --git a/config/routes.rb b/config/routes.rb index 01e3c9495cb..dbe5301bd9d 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -7,8 +7,8 @@ # TODO(graphql_schema): This route is deprecated and should be removed. post '/graphql', to: 'graphql#execute' - post 'api/graphql', to: 'graphql/api#execute' - post 'customer_portal/graphql', to: 'graphql/customer_portal#execute' + post '/api/graphql', to: 'graphql/api#execute' + post '/customer_portal/graphql', to: 'graphql/customer_portal#execute' if Rails.env.development? mount GraphiQL::Rails::Engine,