Infrastructure connection updates
This commit is contained in:
+5
-2
@@ -108,7 +108,7 @@ Qwaiter::Application.routes.draw do
|
||||
end
|
||||
|
||||
|
||||
#get '/s' => 'dashboard#scan', as: :scan
|
||||
get '/s' => 'dashboard#scan', as: :scan
|
||||
|
||||
# DEVELOPMENT ONLY
|
||||
get '/qr' => 'dashboard#qr'
|
||||
@@ -203,13 +203,16 @@ Qwaiter::Application.routes.draw do
|
||||
|
||||
mount Cmtool::Engine => '/cmtool'
|
||||
|
||||
# NOTE: tried to do the following 2 matchers in 1 like get '/supplier*other', but did not work, so better safe then sorry and use 2
|
||||
get '/supplier' => 'supplier#home', as: :supplier_root
|
||||
get '/supplier/*other' => 'supplier#home'
|
||||
|
||||
# /nl is not matched to pages#home with locale => nl
|
||||
get '/:locale' => 'pages#home', constraints: {locale: ALLOWED_LOCALES}, as: :go_to_locale
|
||||
get '/sitemap(.:format)' => 'pages#sitemap'
|
||||
#devise_scope :supplier do
|
||||
#get '/:locale/suppliers/sign_up' => 'registrations#new', constraints: {locale: ALLOWED_LOCALES}
|
||||
#end
|
||||
get '/supplier*other' => 'supplier#home', as: :supplier_root
|
||||
scope '(/:locale)', constraints: {locale: ALLOWED_LOCALES}, defaults: { locale: Rails.application.config.i18n.default_locale.to_s } do
|
||||
root to: 'pages#home'
|
||||
resources :contact_forms, only: [:create]
|
||||
|
||||
Reference in New Issue
Block a user