bus_booking/config/routes.rb

17 lines
477 B
Ruby
Raw Normal View History

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"
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