Files
sx-fc/app/controllers/api/restaurant/out_of_stock_controller.rb
2019-12-13 10:07:20 +06:30

9 lines
210 B
Ruby

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