diff options
author | multiple creatures <dev@multiple-creature.party> | 2020-01-15 22:28:50 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-01-15 22:28:57 -0600 |
commit | f35851e777cc8a704f30fe4970a91b9faf823f67 (patch) | |
tree | ca5db976524826c6d98865941438e77d64684440 /app/controllers | |
parent | 299ee199668cec3d61970be381aa7aa0675ec886 (diff) |
port instances controller from upstream
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/api/v1/instances_controller.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/controllers/api/v1/instances_controller.rb b/app/controllers/api/v1/instances_controller.rb index 8c83a1801..93e4f0003 100644 --- a/app/controllers/api/v1/instances_controller.rb +++ b/app/controllers/api/v1/instances_controller.rb @@ -5,8 +5,7 @@ class Api::V1::InstancesController < Api::BaseController 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 + expires_in 3.minutes, public: true + render_with_cache json: {}, serializer: REST::InstanceSerializer, root: 'instance' end end |