Hello :slightly_smiling_face: I would 'namespacing...
# support
s
Hello ๐Ÿ™‚ I would 'namespacing' a solidus app into a subdomain like 'shop', should I do something like
mount Spree::Core::Engine, at: '/', constraints : { subdomain: 'shop' }
or
Copy code
Spree::Core::Engine.routes.draw do
  constraints subdomain: 'shop' do
    ...
  end
end
?
โœ… 2
k
I think itโ€™s:
Copy code
constraints subdomain: 'shop' do
    mount Spree::Core::Engine, at: '/'
end
w
If Iโ€™m not wrong, the latter will add new routes constrained by the subdomain, but wonโ€™t change the already defined ones. So Iโ€™d go with the first.
Or what Alberto said ๐Ÿ™‚
k
They are probably the same (my suggestion and the first from @Sabo)
s
Ok thank you for your responses I will try that ๐Ÿ˜‰
k
Let us know if that works!
๐Ÿ‘ 1
s
Yes ๐Ÿ˜‰
It's working ;)
๐Ÿš€ 1