Class: Testimonials::Api::BaseController
- Inherits:
-
Testimonials::ApplicationController
- Object
- ActionController::Base
- Testimonials::ApplicationController
- Testimonials::Api::BaseController
- Defined in:
- app/controllers/testimonials/api/base_controller.rb
Overview
Read-only JSON. With config.public_api the endpoints answer anyone (approved + consented records only, CORS open for static marketing sites); otherwise they answer only requests that pass authorize_admin.