Files
sx-fc/config/routes.rb
2017-04-03 21:26:22 +06:30

18 lines
439 B
Ruby

Rails.application.routes.draw do
namespace :api, :defaults => { :format => 'json' } do
#Session Login and Logout
post 'autheticate' => "autheticate#create"
delete 'autheticate' => "autheticate#destroy"
namespace :restaurant do
get 'zones' => "zones#index"
get 'tables' => "#index"
end
end
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
end