2014-12-30 11:52:45 +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 "/register_modules/modulekeys" => "register_modules#modulekeys"
|
|
|
|
get "/admin_modules/approve" => "admin_modules#approve_modules"
|
|
|
|
get "/admin_modules/install_site_list" => "admin_modules#install_site_list"
|
|
|
|
get "/admin_modules/uninstall_site_list" => "admin_modules#uninstall_site_list"
|
|
|
|
get "/admin_modules/revokelist" => "admin_modules#revoke_list"
|
|
|
|
get "/admin_modules/grantlist" => "admin_modules#grant_list"
|
|
|
|
post "/admin_modules/install" => "admin_modules#install_module"
|
|
|
|
post "/admin_modules/uninstall" => "admin_modules#uninstall_module"
|
|
|
|
post "/admin_modules/revoke" => "admin_modules#revoke_module"
|
|
|
|
post "/admin_modules/grant" => "admin_modules#grant_module"
|
2018-01-30 18:43:31 +00:00
|
|
|
get "/admin_modules/uploadfiles" => "admin_modules#uploadfiles"
|
|
|
|
post "/admin_modules/upload_module_image" => "admin_modules#upload_module_image"
|
2015-02-02 10:36:45 +00:00
|
|
|
get "/register_desktop_widgets/approve_widget" => "register_desktop_widgets#approve_widget"
|
2014-12-30 11:52:45 +00:00
|
|
|
resources :register_modules
|
|
|
|
resources :admin_modules
|
2015-02-02 10:36:45 +00:00
|
|
|
resources :register_desktop_widgets
|
2014-12-30 11:52:45 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|