registered-sites/config/routes.rb

13 lines
333 B
Ruby
Raw Normal View History

2014-10-27 11:01:37 +00:00
Rails.application.routes.draw do
locales = Site.first.in_use_locales rescue I18n.available_locales
scope "(:locale)", locale: Regexp.new(locales.join("|")) do
namespace :admin do
get "/registered_site/change_access/:uid" => "registered_sites#change_access_status"
resources :registered_sites
end
end
end