venue_management/config/routes.rb

45 lines
1.3 KiB
Ruby
Raw Normal View History

2020-05-07 15:26:34 +00:00
Rails.application.routes.draw do
locales = Site.first.in_use_locales rescue I18n.available_locales
2020-07-27 16:34:33 +00:00
2020-05-07 15:26:34 +00:00
scope "(:locale)", locale: Regexp.new(locales.join("|")) do
namespace :admin do
resources :venue_managements do
member do
get 'export'
get 'set_write_off'
get 'venue_management_signup'
get 'venue_management_item_content'
get 'venue_management_signup_field'
get 'venue_management_submission_field'
2020-07-27 16:34:33 +00:00
get 'venue_management_invitings'
2020-07-30 14:28:57 +00:00
get 'venue_management_memorabilias'
2020-05-07 15:26:34 +00:00
end
end
resources :venue_management_items do
collection do
post 'delete_items'
end
end
resources :venue_management_agreements
resources :venue_management_signups
resources :venue_management_item_contents
2020-07-27 16:34:33 +00:00
resources :venue_management_invitings
2020-07-30 14:28:57 +00:00
resources :venue_management_memorabilias
2020-05-07 15:26:34 +00:00
end
resources :venue_managements do
collection do
get ':slug_title-:uid', to: 'venue_managements#show'
post 'con_login_proc', to: 'venue_managements#con_login_proc'
post 'con_logout_proc', to: 'venue_managements#con_logout_proc'
post 'add_file_proc', to: 'venue_managements#add_file_proc'
post 'edit_file_proc', to: 'venue_managements#edit_file_proc'
post 'del_file', to: 'venue_managements#del_file'
end
end
end
2020-07-27 16:34:33 +00:00
2020-05-07 15:26:34 +00:00
end