17 lines
319 B
Ruby
17 lines
319 B
Ruby
class Api::BookingsController < Api::ApiController
|
|
skip_before_action :authenticate
|
|
#Show customer by ID
|
|
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
|