Make presenters work with the api

This commit is contained in:
Joseph Cohen
2015-05-16 13:57:32 -05:00
parent b6aa4b1d8b
commit 33f6bf167c
6 changed files with 209 additions and 11 deletions

View File

@@ -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));
}
/**