add out of stock

This commit is contained in:
NyanLinHtut
2019-12-13 10:07:20 +06:30
parent 7a9e270627
commit c6c605bb01
20 changed files with 1041 additions and 44 deletions

View File

@@ -0,0 +1,8 @@
class Api::Restaurant::OutOfStockController < Api::ApiController
skip_before_action :authenticate
def index
date = params[:date]
@out_of_stock = OutOfStock.where("DATE(date) = ?", date)
end
end