1
0

instances_controller.rb 375 B

1234567891011
  1. # frozen_string_literal: true
  2. class Api::V1::InstancesController < Api::BaseController
  3. skip_before_action :set_cache_headers
  4. skip_before_action :require_authenticated_user!, unless: :whitelist_mode?
  5. def show
  6. expires_in 3.minutes, public: true
  7. render_with_cache json: InstancePresenter.new, serializer: REST::V1::InstanceSerializer, root: 'instance'
  8. end
  9. end