18 lines
477 B
Ruby
18 lines
477 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
|
|
post "/universal_tables/add_entry", to: 'universal_tables#add_entry'
|
|
patch "/universal_tables/update_entry", to: 'universal_tables#update_entry'
|
|
resources :universal_tables do
|
|
get "new_entry"
|
|
delete "delete_entry"
|
|
get "edit_entry"
|
|
end
|
|
end
|
|
end
|
|
|
|
end
|