2014-10-27 11:01:37 +00:00
|
|
|
Rails.application.routes.draw do
|
2021-07-15 08:59:00 +00:00
|
|
|
post "/register/site" => "admin/register_api#register"
|
|
|
|
post "/register/store_token" => "admin/register_api#send_store_token"
|
|
|
|
get "/register/confirm_email" => "admin/register_api#confirm_email"
|
|
|
|
get "/site/permissions" => "admin/register_api#check_permissions"
|
|
|
|
get "/site/send_email" => "admin/register_api#send_email"
|
|
|
|
|
2014-10-27 11:01:37 +00:00
|
|
|
locales = Site.first.in_use_locales rescue I18n.available_locales
|
|
|
|
|
|
|
|
scope "(:locale)", locale: Regexp.new(locales.join("|")) do
|
2020-04-01 03:44:59 +00:00
|
|
|
post "/xhr/site/re_register_url", to: 'admin/register_api#re_register_url'
|
|
|
|
get 'git-auth' => 'registered_sites#git_auth'
|
|
|
|
post 'git-auth' => 'registered_sites#git_auth'
|
|
|
|
namespace :admin do
|
2014-10-27 11:01:37 +00:00
|
|
|
get "/registered_site/change_access/:uid" => "registered_sites#change_access_status"
|
2020-04-01 03:44:59 +00:00
|
|
|
resources :registered_sites,:except => ['show'] do
|
2017-02-06 07:54:26 +00:00
|
|
|
member do
|
|
|
|
get "progress"
|
|
|
|
end
|
2020-04-01 03:44:59 +00:00
|
|
|
end
|
|
|
|
resource :registered_sites,:only => [] do
|
|
|
|
post 'get_watch_list' => 'registered_sites#get_watch_list'
|
|
|
|
get 'get_select_box' => 'registered_sites#get_select_box'
|
|
|
|
get 'announcement' => 'registered_sites#announcement'
|
|
|
|
get ':site_annc_id/edit_annc' => 'registered_sites#edit_annc'
|
|
|
|
get ':site_annc_id/delete_annc' => 'registered_sites#delete_annc'
|
|
|
|
post ':site_annc_id/update_annc' => 'registered_sites#update_annc'
|
|
|
|
post 'get_check_log' => 'registered_sites#get_check_log'
|
|
|
|
post 'check_all_site' => 'registered_sites#check_all_site'
|
|
|
|
post 'destroy_bundle_temp' => 'registered_sites#destroy_bundle_temp'
|
|
|
|
get 'bundle_update_remote_show' => 'registered_sites#bundle_update_remote_show'
|
|
|
|
post "bundle_update" => 'registered_sites#bundle_update'
|
|
|
|
post 'stop_bundle_update' => 'registered_sites#stop_bundle_update'
|
|
|
|
post 'get_message' => 'registered_sites#get_message'
|
|
|
|
post 'get_detail' => 'registered_sites#get_detail'
|
|
|
|
post 'check_site' => 'registered_sites#check_site'
|
2017-02-06 07:54:26 +00:00
|
|
|
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
|