Merge branch 'crm' of bitbucket.org:code2lab/sxrestaurant
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
class Api::BookingsController < Api::ApiController
|
||||
|
||||
|
||||
skip_before_action :authenticate
|
||||
#Show customer by ID
|
||||
def index
|
||||
@customer = Customer.find_by(params[:id])
|
||||
|
||||
@@ -7,7 +7,10 @@ class Api::OrdersController < Api::ApiController
|
||||
order = Order.find(params[:order_id])
|
||||
order.order_items
|
||||
end
|
||||
|
||||
def get_order
|
||||
order = Order.find(params[:order_id])
|
||||
order.order_items
|
||||
end
|
||||
|
||||
# Description
|
||||
# This API allow new order creation
|
||||
|
||||
Reference in New Issue
Block a user