Files
sx-fc/app/controllers/api/shops_controller.rb
Myat Zin Wai Maw d6e0079314 -
2020-01-14 18:09:45 +06:30

13 lines
237 B
Ruby

class Api::ShopsController < Api::ApiController
skip_before_action :authenticate
def index
@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