Append Order Detail view finished
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
class Api::BookingsController < Api::ApiController
|
||||
|
||||
skip_before_action :authenticate
|
||||
|
||||
#Show customer by ID
|
||||
def index
|
||||
@@ -10,6 +10,15 @@ class Api::BookingsController < Api::ApiController
|
||||
@booking = Booking.find(params[:id])
|
||||
end
|
||||
|
||||
def update_booking
|
||||
|
||||
|
||||
booking = Booking.find_by(id: params[:booking])
|
||||
booking.update_all(booking_status: 'Dave')
|
||||
|
||||
|
||||
end
|
||||
|
||||
# private
|
||||
# def Bookings_params
|
||||
# params.permit(:id, :order_id)
|
||||
|
||||
Reference in New Issue
Block a user