about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2020-01-15 22:28:50 -0600
committermultiple creatures <dev@multiple-creature.party>2020-01-15 22:28:57 -0600
commitf35851e777cc8a704f30fe4970a91b9faf823f67 (patch)
treeca5db976524826c6d98865941438e77d64684440 /app/controllers
parent299ee199668cec3d61970be381aa7aa0675ec886 (diff)
port instances controller from upstream
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/api/v1/instances_controller.rb5
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