api integrated

This commit is contained in:
Min Zeya Phyo
2017-04-19 19:39:58 +06:30
parent c4e76c53b2
commit 0a97947259
25 changed files with 755 additions and 2 deletions

View File

@@ -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