Class: SupplejackApi::MetricsApiController

Inherits:
ApplicationController show all
Defined in:
app/controllers/supplejack_api/metrics_api_controller.rb

Constant Summary collapse

API_VERSIONS =
{
  'v3' => MetricsApi::V3::Api
}.freeze

Instance Method Summary collapse

Methods inherited from ApplicationController

#authenticate_admin!, #authenticate_user!, #current_user, #find_user_set

Instance Method Details

#facetsObject


14
15
16
# File 'app/controllers/supplejack_api/metrics_api_controller.rb', line 14

def facets
  render_response(:facets)
end

#globalObject


18
19
20
# File 'app/controllers/supplejack_api/metrics_api_controller.rb', line 18

def global
  render_response(:global)
end

#rootObject


10
11
12
# File 'app/controllers/supplejack_api/metrics_api_controller.rb', line 10

def root
  render_response(:root)
end