Make presenters work with the api
This commit is contained in:
@@ -57,7 +57,7 @@ class MetricController extends AbstractApiController
|
||||
*/
|
||||
public function getMetric($id)
|
||||
{
|
||||
return $this->metric->findOrFail($id);
|
||||
return $this->item($this->metric->findOrFail($id));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -69,7 +69,7 @@ class MetricController extends AbstractApiController
|
||||
*/
|
||||
public function getMetricPoints($id)
|
||||
{
|
||||
return $this->metric->points($id);
|
||||
return $this->collection($this->metric->points($id));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user