peimelo/controlled_health_api

View on GitHub
app/controllers/api/v1/dashboards_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
class Api::V1::DashboardsController < ApplicationController
  include AllHeights

  before_action :authenticate_api_user!
  before_action :current_account

  def index
    @dashboard = Dashboard.new(@current_account, heights_for_range)
    render json: @dashboard, status: :ok
  end
end