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.

Allow only list and show countries/states

Damian Legawiecba3234c34b63
diff --git a/api/config/routes.rb b/api/config/routes.rb
index 20fd4cd345..1c2c26a765 100644
--- a/api/config/routes.rb
+++ b/api/config/routes.rb
@@ -232,8 +232,8 @@ Spree::Core::Engine.add_routes do
# Geo API
resources :zones
- resources :countries
- resources :states
+ resources :countries, only: [:index, :show]
+ resources :states, only: [:index, :show]
# Shipment API
resources :shipments do