0
0
Fork 0

Add Api::V1::Instances::BaseController base controller class (#27797)

This commit is contained in:
Matt Jankowski 2023-11-10 07:46:00 -05:00 committed by GitHub
parent fba838d61a
commit ac69f90098
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 16 additions and 34 deletions

View file

@ -1,13 +1,10 @@
# frozen_string_literal: true
class Api::V1::Instances::LanguagesController < Api::BaseController
skip_before_action :require_authenticated_user!, unless: :limited_federation_mode?
class Api::V1::Instances::LanguagesController < Api::V1::Instances::BaseController
skip_around_action :set_locale
before_action :set_languages
vary_by ''
def show
cache_even_if_authenticated!
render json: @languages, each_serializer: REST::LanguageSerializer