controller creation
This commit is contained in:
8
app/controllers/api/bookings_controller.rb
Normal file
8
app/controllers/api/bookings_controller.rb
Normal file
@@ -0,0 +1,8 @@
|
||||
class Api::BookingsController < ActionController::API
|
||||
|
||||
|
||||
#Show customer by ID
|
||||
def create
|
||||
@customer = Customer.find_by(params[:id])
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user