2017-03-15 23:12:48 +01:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2025-03-25 13:30:10 +01:00
|
|
|
class Api::V1::InstancesController < Api::V2::InstancesController
|
|
|
|
include DeprecationConcern
|
2017-03-15 23:12:48 +01:00
|
|
|
|
2025-03-25 13:30:10 +01:00
|
|
|
deprecate_api '2022-11-14'
|
2023-04-25 22:14:44 +02:00
|
|
|
|
2017-07-07 04:02:06 +02:00
|
|
|
def show
|
2023-04-25 15:41:34 +02:00
|
|
|
cache_even_if_authenticated!
|
2022-10-05 03:47:56 +02:00
|
|
|
render_with_cache json: InstancePresenter.new, serializer: REST::V1::InstanceSerializer, root: 'instance'
|
2017-07-07 04:02:06 +02:00
|
|
|
end
|
2017-03-15 23:12:48 +01:00
|
|
|
end
|