Class: Api::Dashboard::CuisinesController
- Inherits:
-
BaseController
- Object
- ActionController::API
- BaseController
- Api::Dashboard::CuisinesController
- Defined in:
- app/controllers/api/dashboard/cuisines_controller.rb
Instance Method Summary collapse
Methods inherited from BaseController
#current_user, #identity_cache_memoization, #restaurants, #set_options
Methods included from LogrageCustomLogger
Methods included from ControllerHelpers
#check_boolean_param, #get_banners, #inventory_params, #reservation_params
Methods included from ResponseCacheConcern
Instance Method Details
#index ⇒ Object
6 7 8 9 10 |
# File 'app/controllers/api/dashboard/cuisines_controller.rb', line 6 def index cuisines = RestaurantTag.where('title_en LIKE ?', 'Cuisine%') expires_in DEFAULT_HTTP_PUBLIC_CACHE_EXPIRATION, public: true render json: Api::Dashboard::CuisineSerializer.new(cuisines).as_json end |