Updated instance api endpoints to return empty

• Updated:
- instance api endpoints to return empty, /api/v1/instance /api/v1/instance/peers /api/v1/instance/activity
This commit is contained in:
mgabdev 2020-05-27 13:09:04 -04:00
parent b50ca9ef4a
commit 294883da56
3 changed files with 3 additions and 5 deletions

View File

@ -7,7 +7,7 @@ class Api::V1::Instances::ActivityController < Api::BaseController
respond_to :json respond_to :json
def show def show
render_cached_json('api:v1:instances:activity:show', expires_in: 1.day) { activity } render json: {}, content_type: 'application/json'
end end
private private

View File

@ -7,7 +7,7 @@ class Api::V1::Instances::PeersController < Api::BaseController
respond_to :json respond_to :json
def index def index
render_cached_json('api:v1:instances:peers:index', expires_in: 1.day) { Account.remote.domains } render json: {}, content_type: 'application/json'
end end
private private

View File

@ -5,8 +5,6 @@ class Api::V1::InstancesController < Api::BaseController
skip_before_action :set_cache_headers skip_before_action :set_cache_headers
def show def show
render_cached_json('api:v1:instances', expires_in: 5.minutes) do render json: {}, content_type: 'application/json'
ActiveModelSerializers::SerializableResource.new({}, serializer: REST::InstanceSerializer)
end
end end
end end