Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Fix: MCP endpoint was drawn twice

Damian Legawiecab4c563f866a
diff --git a/spree/mcp/lib/spree/mcp/engine.rb b/spree/mcp/lib/spree/mcp/engine.rb
index 574ddf3ba2..4b4f2ae386 100644
--- a/spree/mcp/lib/spree/mcp/engine.rb
+++ b/spree/mcp/lib/spree/mcp/engine.rb
@@ -6,11 +6,3 @@ module Spree
end
end
end
-
-# The endpoint is drawn into the Admin API's own namespace rather than mounted
-# separately, so it inherits that namespace's host constraints, rate limiting
-# and security headers. Required here rather than left to Rails' engine route
-# loading: `Spree::Core::Engine.add_routes` has to have collected the block
-# before core draws its routes, which happens while core's own routes file
-# loads.
-require_relative '../../../config/routes'