customer create

This commit is contained in:
Nweni
2019-11-19 09:16:55 +06:30
parent 5dc93ef2f8
commit aad153a4ef
11 changed files with 109 additions and 30 deletions

View File

@@ -3,7 +3,10 @@ class Api::ShopsController < Api::ApiController
skip_before_action :authenticate
def index
@shops = Shop.select('id,logo,name,shop_code,address,phone_no,cloud_url,cloud_token').all
@shops = Shop.select('id,logo,name,shop_code,address,phone_no').all
end
def show
@shop = Shop.find_by_shop_code(params[:id])
end
end