Class: Api::Partner::V1::FaqController
- Inherits:
-
BaseController
- Object
- ActionController::API
- BaseController
- Api::Partner::V1::FaqController
- Defined in:
- app/controllers/api/partner/v1/faq_controller.rb
Instance Method Summary collapse
Methods inherited from BaseController
#default_restaurant, #identity_cache_memoization, #render_unauthorize_action, #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 11 |
# File 'app/controllers/api/partner/v1/faq_controller.rb', line 6 def index faqs = Faq.ordered pagy, faqs = pagy(faqs) render json: ::Api::Partner::FaqSerializer.new(faqs, (pagy)).as_json end |