2016-06-23 11:23:18 +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 "bus_bookings/bookbus" => "bus_bookings#bookbus"
|
2016-08-10 10:32:45 +00:00
|
|
|
post "bus_bookings/deletebookings" => "bus_bookings#deletebookings"
|
2016-06-23 11:23:18 +00:00
|
|
|
resources :bus_bookings do
|
|
|
|
get "reserve"
|
|
|
|
get "export"
|
|
|
|
get "duplicate"
|
|
|
|
delete "cancel"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|