api_controller

This commit is contained in:
Nweni
2019-12-03 17:50:42 +06:30
parent be8cf2c34e
commit 3729c20d05
3 changed files with 2 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
class Api::ApiController < ActionController::API
include TokenVerification
include ActionView::Rendering
include ActionController::MimeResponds
before_action :core_allow

View File

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

View File

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