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