23 lines
977 B
Ruby
23 lines
977 B
Ruby
|
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"
|
||
|
resources :register_modules
|
||
|
resources :admin_modules
|
||
|
end
|
||
|
end
|
||
|
|
||
|
end
|