manifests_controller.rb 446 B

123456789101112
  1. # frozen_string_literal: true
  2. class ManifestsController < ActionController::Base # rubocop:disable Rails/ApplicationController
  3. # Prevent `active_model_serializer`'s `ActionController::Serialization` from calling `current_user`
  4. # and thus re-issuing session cookies
  5. serialization_scope nil
  6. def show
  7. expires_in 3.minutes, public: true
  8. render json: InstancePresenter.new, serializer: ManifestSerializer, root: 'instance'
  9. end
  10. end