Class: Api::V5::CustomLabelsController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/api/v5/custom_labels_controller.rb

Constant Summary

Constants inherited from BaseController

BaseController::CACHE_NAMESPACE, BaseController::INTERNAL_SERVER_ERROR_MESSAGE, BaseController::ResponseSchema

Instance Method Summary collapse

Methods inherited from BaseController

#identity_cache_memoization

Methods included from LogrageCustomLogger

#append_info_to_payload

Methods included from ResponseCacheConcern

#my_response_cache

Instance Method Details

#indexObject



7
8
9
10
# File 'app/controllers/api/v5/custom_labels_controller.rb', line 7

def index
  expires_in DEFAULT_HTTP_PUBLIC_CACHE_EXPIRATION, public: true
  render json: { data: CustomLabel.undefined_label }
end