blob: 8c83a180149cab1a7b85e62a1c2ce35fdd798fd1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
# frozen_string_literal: true
class Api::V1::InstancesController < Api::BaseController
respond_to :json
skip_before_action :set_cache_headers
def show
render_cached_json('api:v1:instances', expires_in: 5.minutes) do
ActiveModelSerializers::SerializableResource.new({}, serializer: REST::InstanceSerializer)
end
end
end
|