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:
parent
b50ca9ef4a
commit
294883da56
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue