diff --git a/app/controllers/api/api_controller.rb b/app/controllers/api/api_controller.rb index 22488792..afcc42a7 100755 --- a/app/controllers/api/api_controller.rb +++ b/app/controllers/api/api_controller.rb @@ -1,5 +1,6 @@ class Api::ApiController < ActionController::API include TokenVerification + include ActionView::Rendering include ActionController::MimeResponds before_action :core_allow diff --git a/app/controllers/api/bill_controller.rb b/app/controllers/api/bill_controller.rb index 22f1ede8..edd15a0d 100755 --- a/app/controllers/api/bill_controller.rb +++ b/app/controllers/api/bill_controller.rb @@ -2,6 +2,7 @@ class Api::BillController < Api::ApiController #Create invoice based on booking #Output and invoice + def create @status = false @error_message = "Order ID or Booking ID is require to request for a bill." diff --git a/app/controllers/api/shops_controller.rb b/app/controllers/api/shops_controller.rb index fb726e29..23d50ebc 100644 --- a/app/controllers/api/shops_controller.rb +++ b/app/controllers/api/shops_controller.rb @@ -4,7 +4,6 @@ class Api::ShopsController < Api::ApiController def index @shops = Shop.select('id,logo,name,shop_code,address,phone_no').all - # render :json => {:name => "any name"} end def show