instances_controller.rb 263 B

12345678
  1. # frozen_string_literal: true
  2. class Api::V2::InstancesController < Api::V1::InstancesController
  3. def show
  4. expires_in 3.minutes, public: true
  5. render_with_cache json: InstancePresenter.new, serializer: REST::InstanceSerializer, root: 'instance'
  6. end
  7. end