2015-11-13 13:10:00 +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
|
|
|
|
post "/universal_tables/add_entry", to: 'universal_tables#add_entry'
|
|
|
|
patch "/universal_tables/update_entry", to: 'universal_tables#update_entry'
|
2015-12-17 13:58:04 +00:00
|
|
|
post "/universal_tables/import_data_from_excel", to: 'universal_tables#import_data_from_excel'
|
2017-04-13 10:50:32 +00:00
|
|
|
get "universal_tables/checkforthread", to: "universal_tables#checkforthread"
|
2015-11-13 13:10:00 +00:00
|
|
|
resources :universal_tables do
|
|
|
|
get "new_entry"
|
|
|
|
delete "delete_entry"
|
|
|
|
get "edit_entry"
|
2015-12-17 13:58:04 +00:00
|
|
|
get "export_structure"
|
2017-04-13 10:50:32 +00:00
|
|
|
member do
|
|
|
|
get "export_data"
|
|
|
|
end
|
2015-11-13 13:10:00 +00:00
|
|
|
end
|
|
|
|
end
|
2016-09-21 12:25:41 +00:00
|
|
|
get "/xhr/universal_table/export", to: 'universal_tables#export_filtered'
|
2015-11-13 13:10:00 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|