Rails.application.routes.draw do namespace :panel do namespace :location do namespace :back_end do match "locations/get_locations" => "locations#get_locations" resources :locations resources :location_categories end end end end