# frozen_string_literal: true
class Api::V1::Admin::AccountActionsController < Api::BaseController
- protect_from_forgery with: :exception
-
before_action -> { authorize_if_got_token! :'admin:write', :'admin:write:accounts' }
before_action :require_staff!
before_action :set_account
# frozen_string_literal: true
class Api::V1::Admin::AccountsController < Api::BaseController
- protect_from_forgery with: :exception
-
include Authorization
include AccountableConcern
# frozen_string_literal: true
class Api::V1::Admin::DimensionsController < Api::BaseController
- protect_from_forgery with: :exception
-
before_action -> { authorize_if_got_token! :'admin:read' }
before_action :require_staff!
before_action :set_dimensions
# frozen_string_literal: true
class Api::V1::Admin::MeasuresController < Api::BaseController
- protect_from_forgery with: :exception
-
before_action -> { authorize_if_got_token! :'admin:read' }
before_action :require_staff!
before_action :set_measures
# frozen_string_literal: true
class Api::V1::Admin::ReportsController < Api::BaseController
- protect_from_forgery with: :exception
-
include Authorization
include AccountableConcern
# frozen_string_literal: true
class Api::V1::Admin::RetentionController < Api::BaseController
- protect_from_forgery with: :exception
-
before_action -> { authorize_if_got_token! :'admin:read' }
before_action :require_staff!
before_action :set_cohorts
# frozen_string_literal: true
class Api::V1::Admin::Trends::LinksController < Api::BaseController
- protect_from_forgery with: :exception
-
before_action -> { authorize_if_got_token! :'admin:read' }
before_action :require_staff!
before_action :set_links
# frozen_string_literal: true
class Api::V1::Admin::Trends::StatusesController < Api::BaseController
- protect_from_forgery with: :exception
-
before_action -> { authorize_if_got_token! :'admin:read' }
before_action :require_staff!
before_action :set_statuses
# frozen_string_literal: true
class Api::V1::Admin::Trends::TagsController < Api::BaseController
- protect_from_forgery with: :exception
-
before_action -> { authorize_if_got_token! :'admin:read' }
before_action :require_staff!
before_action :set_tags