diff --git a/web/config/routes.rb b/web/config/routes.rb index 73d657b..23f33a8 100644 --- a/web/config/routes.rb +++ b/web/config/routes.rb @@ -6,6 +6,9 @@ mount ShopifyApp::Engine, at: "/api" get "/api", to: redirect(path: "/") # Needed because our engine root is /api but that breaks FE routing + # If you are adding routes outside of the /api path, remember to also add a proxy rule for + # them in web/frontend/vite.config.js + # Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html get "/api/products/count", to: "products#count"