Change unauthenticated responses to be cached in REST API (#24348)
This commit is contained in:
@ -5,6 +5,7 @@ class Api::V1::DirectoriesController < Api::BaseController
|
||||
before_action :set_accounts
|
||||
|
||||
def show
|
||||
cache_if_unauthenticated!
|
||||
render json: @accounts, each_serializer: REST::AccountSerializer
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user