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
|
2016-04-15 10:18:58 +00:00
|
|
|
post "/xhr/site/re_register_url", to: 'admin/register_api#re_register_url'
|
2014-10-27 11:01:37 +00:00
|
|
|
namespace :admin do
|
|
|
|
get "/registered_site/change_access/:uid" => "registered_sites#change_access_status"
|
2017-02-06 07:54:26 +00:00
|
|
|
resources :registered_sites do
|
|
|
|
member do
|
|
|
|
get "progress"
|
|
|
|
end
|
|
|
|
end
|
2014-12-04 13:59:49 +00:00
|
|
|
resources :customization_logs do
|
|
|
|
member do
|
|
|
|
get "get_log" => "customization_logs#get_log"
|
2014-12-05 10:08:10 +00:00
|
|
|
post "archive" => "customization_logs#archive"
|
2014-12-04 13:59:49 +00:00
|
|
|
end
|
|
|
|
end
|
2014-10-27 11:01:37 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|