2
0

Add terms of service (#33055)

This commit is contained in:
Eugen Rochko
2024-12-09 11:04:46 +01:00
committed by GitHub
parent 7a2a345c08
commit 30aa0df88c
129 changed files with 1456 additions and 238 deletions

View File

@@ -0,0 +1,16 @@
# frozen_string_literal: true
class Api::V1::Instances::TermsOfServicesController < Api::V1::Instances::BaseController
before_action :set_terms_of_service
def show
cache_even_if_authenticated!
render json: @terms_of_service, serializer: REST::PrivacyPolicySerializer
end
private
def set_terms_of_service
@terms_of_service = TermsOfService.live.first!
end
end