25 lines
562 B
Ruby
25 lines
562 B
Ruby
Rails.application.routes.draw do
|
|
root 'home#index'
|
|
#Login for Web
|
|
post 'authenticate' => 'home#create'
|
|
delete 'authenticate' => 'home/destroy'
|
|
|
|
namespace :api, :defaults => { :format => 'json' } do
|
|
|
|
#Session Login and Logout
|
|
post 'authenticate' => "autheticate#create"
|
|
delete 'authenticate' => "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
|