api_controller
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
class Api::ApiController < ActionController::API
|
class Api::ApiController < ActionController::API
|
||||||
include TokenVerification
|
include TokenVerification
|
||||||
|
include ActionView::Rendering
|
||||||
include ActionController::MimeResponds
|
include ActionController::MimeResponds
|
||||||
|
|
||||||
before_action :core_allow
|
before_action :core_allow
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ class Api::BillController < Api::ApiController
|
|||||||
|
|
||||||
#Create invoice based on booking
|
#Create invoice based on booking
|
||||||
#Output and invoice
|
#Output and invoice
|
||||||
|
|
||||||
def create
|
def create
|
||||||
@status = false
|
@status = false
|
||||||
@error_message = "Order ID or Booking ID is require to request for a bill."
|
@error_message = "Order ID or Booking ID is require to request for a bill."
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ class Api::ShopsController < Api::ApiController
|
|||||||
|
|
||||||
def index
|
def index
|
||||||
@shops = Shop.select('id,logo,name,shop_code,address,phone_no').all
|
@shops = Shop.select('id,logo,name,shop_code,address,phone_no').all
|
||||||
# render :json => {:name => "any name"}
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def show
|
def show
|
||||||
|
|||||||
Reference in New Issue
Block a user