Fix listing of metric points.

This commit is contained in:
James Brooks
2015-03-11 14:33:19 +00:00
parent e398c7f0ab
commit 1b11f3b675
5 changed files with 38 additions and 11 deletions

View File

@@ -29,15 +29,6 @@ class MetricPointController extends Controller
{
$this->metricPoint = $metricPoint;
}
/**
* Get all metric points.
*
* @return \Illuminate\Database\Eloquent\Collection
*/
public function getMetricPoints()
{
return $this->metricPoint->all();
}
/**
* Get a single metric point.
@@ -46,7 +37,7 @@ class MetricPointController extends Controller
*
* @return \CachetHQ\Cachet\Models\MetricPoint
*/
public function getMetricPoint($id)
public function getMetricPoints($id)
{
return $this->metricPoint->findOrFail($id);
}