api integrated
This commit is contained in:
@@ -1,8 +1,17 @@
|
||||
class Api::BookingsController < ActionController::API
|
||||
class Api::BookingsController < Api::ApiController
|
||||
|
||||
|
||||
#Show customer by ID
|
||||
def create
|
||||
def index
|
||||
@customer = Customer.find_by(params[:id])
|
||||
end
|
||||
|
||||
def show
|
||||
@booking = Booking.find(params[:id])
|
||||
end
|
||||
|
||||
# private
|
||||
# def Bookings_params
|
||||
# params.permit(:id, :order_id)
|
||||
# end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user