venue_management/config/routes.rb

66 lines
1.8 KiB
Ruby
Raw Permalink 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
resources :venue_management_invitings do
collection do
get 'export'
end
end
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
2020-10-16 04:03:26 +00:00
get 'export'
2020-10-05 16:09:17 +00:00
end
end
resources :venue_management_contracts do
collection do
post 'fetch_inviting'
get 'export'
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