* Remove :api_v1 feature flag * Reworking the auth configs throughout V1 + specs * Fix remaining v1 specs * Enhanced inline docs * deprecation warning update * Use headers variable for most v1 specs * Cherry pick spec changes * Fix specs * group let! statements - rubocop * Bring back ||= on api v1 authentication methods * Bump swagger/v1/api_v1.json
17 lines
510 B
Ruby
17 lines
510 B
Ruby
module Api
|
|
module V1
|
|
class AnalyticsController < ApiController
|
|
respond_to :json
|
|
|
|
rescue_from ArgumentError, with: :error_unprocessable_entity
|
|
rescue_from ApplicationPolicy::NotAuthorizedError, with: :error_unauthorized
|
|
|
|
include Api::AnalyticsController
|
|
|
|
before_action :authenticate_with_api_key_or_current_user!
|
|
before_action :authorize_user_organization
|
|
before_action :load_owner
|
|
before_action :validate_date_params, only: [:historical]
|
|
end
|
|
end
|
|
end
|