origami
This commit is contained in:
@@ -72,18 +72,21 @@ Rails.application.routes.draw do
|
||||
#--------- Cashier ------------#
|
||||
namespace :origami do
|
||||
root "home#index"
|
||||
get "/:dining_id" => "home#show" do #origami/:booking_id will show
|
||||
get "table/:dining_id" => "home#show" do #origami/:booking_id will show
|
||||
|
||||
# resources :discounts, only: [:index,:new, :create ] #add discount type
|
||||
resources :customers #add customer type
|
||||
end
|
||||
get 'sale/:sale_id' => 'sales#show'
|
||||
get 'room/:room_id' => 'rooms#show'
|
||||
get 'order/:order_id' => "orders#show"
|
||||
|
||||
post '/:booking_id' => 'home#item_show'
|
||||
|
||||
get "/:id/discount" => "discounts#index"
|
||||
post "/:id/discount" => "discounts#create"
|
||||
|
||||
get "/:id/request_bills" => "request_bills#print"
|
||||
post "/:id/request_bills" => "request_bills#print"
|
||||
get '/:sale_id/reprint' => 'payments#reprint' ,:defaults => { :format => 'json' }
|
||||
#--------- Payment ------------#
|
||||
get 'sale/:sale_id/payment' => 'payments#show'
|
||||
|
||||
Reference in New Issue
Block a user