basic layout template
This commit is contained in:
@@ -1,11 +1,17 @@
|
||||
Rails.application.routes.draw do
|
||||
root 'home#index'
|
||||
#Login for Web
|
||||
|
||||
#--------- SmartSales Installation ------------#
|
||||
get 'install' => 'install#index'
|
||||
post 'install' => 'install#create'
|
||||
|
||||
#--------- Login/Authentication ------------#
|
||||
post 'authenticate' => 'home#create'
|
||||
delete 'authenticate' => 'home/destroy'
|
||||
|
||||
namespace :api, :defaults => { :format => 'json' } do
|
||||
|
||||
#--------- API Routes ------------#
|
||||
namespace :api, :defaults => { :format => 'json' } do
|
||||
#Session Login and Logout
|
||||
post 'authenticate' => "autheticate#create"
|
||||
delete 'authenticate' => "autheticate#destroy"
|
||||
@@ -13,16 +19,64 @@ Rails.application.routes.draw do
|
||||
namespace :restaurant do
|
||||
get 'zones' => "zones#index"
|
||||
get 'tables' => "#index"
|
||||
|
||||
#Order Controller
|
||||
resources :orders, only: [:create, :show, :update]
|
||||
|
||||
|
||||
end
|
||||
|
||||
resources :customers, only: [:index, :show, :create]
|
||||
end
|
||||
|
||||
#--------- Cashier ------------#
|
||||
namespace :cashier do
|
||||
#orders
|
||||
#invoices
|
||||
#payment
|
||||
#receipt
|
||||
end
|
||||
|
||||
#--------- Waiter ------------#
|
||||
namespace :waiter do
|
||||
#zones
|
||||
#tables
|
||||
#orders
|
||||
end
|
||||
|
||||
#--------- Customer Relationship Management ------------#
|
||||
namespace :crm do
|
||||
#customers
|
||||
#membership
|
||||
#bookings
|
||||
#queue
|
||||
end
|
||||
|
||||
#--------- Order Queue Station ------------#
|
||||
namespace :oqs do
|
||||
#dashboard
|
||||
#
|
||||
end
|
||||
|
||||
#--------- System Settings ------------#
|
||||
namespace :settings do
|
||||
#employees
|
||||
resources :employees
|
||||
#menu
|
||||
#menu_categories
|
||||
#menu_items
|
||||
#payment_settings
|
||||
#tax_profiles
|
||||
#lookups
|
||||
#cashier_terminals
|
||||
#order_job_stations
|
||||
#zones
|
||||
#tables
|
||||
#rooms
|
||||
end
|
||||
|
||||
#--------- Reports ------------#
|
||||
namespace :reports do
|
||||
#dashboard
|
||||
#sales
|
||||
#orders
|
||||
#shifts
|
||||
end
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user