venue_management/config/routes.rb

60 lines
1.7 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-09-08 06:12:14 +00:00
get 'venue_management_bills'
2020-07-30 17:30:14 +00:00
get 'venue_management_contracts'
2020-08-10 07:35:02 +00:00
get 'print_pdf'
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-10-05 16:09:17 +00:00
resources :venue_management_bills do
collection do
scope "(:id)" do
get 'copy', to: 'venue_management_bills#copy'
end
end
end
resources :venue_management_contracts do
collection do
post 'fetch_inviting'
end
end
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