employee login and authentication with session

This commit is contained in:
Min Zeya Phyo
2017-04-14 22:47:44 +06:30
parent c1e61c1a39
commit db75780267
27 changed files with 137 additions and 96 deletions

View File

@@ -18,13 +18,24 @@ Rails.application.routes.draw do
namespace :restaurant do
get 'zones' => "zones#index"
get 'tables' => "#index"
resources :seatings, only:[:index, :show] do
post 'bill' => "seatings#create"
post 'move' => "seatings#move"
end
resources :rooms, only:[:index, :show] do
post 'bill' => "seatings#create"
post 'move' => "seatings#move"
end
#Menu Related api
resources :menu, only: [:index, :show] do
resources :menu_categories, only: [:index]
resources :menu_items, only: [:index, :show]
resources :menu_sold_out, only: [:index]
end
end
#Order Controller
@@ -40,7 +51,7 @@ Rails.application.routes.draw do
#--------- Cashier ------------#
namespace :cashier do
#bookings
#orders
#invoices