This commit is contained in:
Myat Zin Wai Maw
2020-01-14 18:09:45 +06:30
parent 60af9124bb
commit d6e0079314
6 changed files with 188 additions and 131 deletions

View File

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