This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2017-06-06 10:29:42 -07:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2023-04-19 07:07:29 -07:00
|
|
|
class ManifestsController < ActionController::Base # rubocop:disable Rails/ApplicationController
|
2023-04-25 13:14:44 -07:00
|
|
|
# Prevent `active_model_serializer`'s `ActionController::Serialization` from calling `current_user`
|
|
|
|
# and thus re-issuing session cookies
|
|
|
|
serialization_scope nil
|
|
|
|
|
2017-10-01 16:23:32 -07:00
|
|
|
def show
|
2019-07-08 03:03:45 -07:00
|
|
|
expires_in 3.minutes, public: true
|
2019-07-23 02:10:42 -07:00
|
|
|
render json: InstancePresenter.new, serializer: ManifestSerializer, root: 'instance'
|
2017-06-06 10:29:42 -07:00
|
|
|
end
|
|
|
|
end
|