Fix creation of metric points at the newer endpoint.

This commit is contained in:
James Brooks
2015-03-11 14:35:17 +00:00
parent 1b11f3b675
commit 7c099546c6
4 changed files with 10 additions and 4 deletions

View File

@@ -45,10 +45,12 @@ class MetricPointController extends Controller
/**
* Create a new metric point.
*
* @param int $id
*
* @return \CachetHQ\Cachet\Models\MetricPoint
*/
public function postMetricPoints()
public function postMetricPoints($id)
{
return $this->metricPoint->create(Binput::all());
return $this->metricPoint->create($id, Binput::all());
}
}