From 9131363cef3a79eeb7d002e279c57cc2ba080c6f Mon Sep 17 00:00:00 2001 From: Pyae Bhone Zaw Date: Thu, 27 Nov 2025 13:16:57 +0630 Subject: [PATCH] feat: add route for root path --- config/routes.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/routes.rb b/config/routes.rb index 3036b05..6c0986b 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,6 +1,10 @@ require "sidekiq/web" # require the web UI Rails.application.routes.draw do + + get '/', to: redirect('/t/collections/new-arrivals') + get '/home', to: 'spree/home#index', as: :clean_home + Spree::Core::Engine.add_routes do # Storefront routes scope '(:locale)', locale: /#{Spree.available_locales.join('|')}/, defaults: { locale: nil } do