employee login and authentication with session
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user