api controller

This commit is contained in:
Nweni
2019-12-03 16:46:52 +06:30
parent 78838a7718
commit be8cf2c34e
5 changed files with 13 additions and 17 deletions

View File

@@ -4,6 +4,7 @@ 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