peimelo/controlled_health_api

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

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
class Api::V1::ExamsGraphicsController < ApplicationController
  before_action :authenticate_api_user!
  before_action :current_account

  def show
    results = ExamResult.graphic_values(@current_account, params[:id])
    render json: results, adapter: :json,
           each_serializer: GraphicValuesSerializer, status: :ok
  end
end