2017-01-20 09:02:50 +00:00
|
|
|
Rails.application.routes.draw do
|
|
|
|
|
|
|
|
locales = Site.find_by(site_active: true).in_use_locales rescue I18n.available_locales
|
|
|
|
scope "(:locale)", locale: Regexp.new(locales.join("|")) do
|
2018-01-24 08:29:28 +00:00
|
|
|
get "/xhr/property_hires/check_availability" => "property_hires#check_availability"
|
2017-01-20 09:02:50 +00:00
|
|
|
post "/xhr/property_hires/make_booking" => "property_hires#make_booking"
|
2021-09-08 02:10:44 +00:00
|
|
|
patch "/xhr/property_hires/make_booking" => "property_hires#make_booking"
|
2017-01-20 09:02:50 +00:00
|
|
|
get "/xhr/property_hires/get_bookings" => "property_hires#get_bookings"
|
|
|
|
namespace :admin do
|
2024-10-23 07:33:50 +00:00
|
|
|
get "property_hires/checkforthread", to: "property_hires#checkforthread"
|
|
|
|
resources :property_hires do
|
2017-01-20 09:02:50 +00:00
|
|
|
member do
|
2024-05-14 00:59:52 +00:00
|
|
|
get 'copy'
|
2017-01-20 09:02:50 +00:00
|
|
|
get "edit_location"
|
|
|
|
patch "update_location"
|
|
|
|
delete "destroy_location"
|
|
|
|
get "show_booking_details"
|
|
|
|
get "pass_booking"
|
2018-01-17 07:53:58 +00:00
|
|
|
delete "delete_booking_details"
|
2021-07-05 10:05:49 +00:00
|
|
|
get "edit_hire"
|
|
|
|
patch "update_hire"
|
2021-09-06 16:45:14 +00:00
|
|
|
get "custom_fields"
|
2021-09-19 07:56:01 +00:00
|
|
|
get "fields_display_order"
|
2024-10-23 07:33:50 +00:00
|
|
|
get "export_reservation_data"
|
2021-09-19 07:56:01 +00:00
|
|
|
post "update_fields_display_order"
|
|
|
|
patch "update_fields_display_order"
|
2017-01-20 09:02:50 +00:00
|
|
|
end
|
2024-10-23 07:33:50 +00:00
|
|
|
collection do
|
2018-02-05 09:15:50 +00:00
|
|
|
get "my_bookings"
|
|
|
|
get "settings"
|
|
|
|
patch "settings"
|
2017-01-20 09:02:50 +00:00
|
|
|
get "manage_locations"
|
|
|
|
get "add_location"
|
|
|
|
post "create_location"
|
2021-09-06 16:45:14 +00:00
|
|
|
get "order"
|
|
|
|
post "updateorder"
|
2017-01-20 09:02:50 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|