Closes #137 - fast component status updates.

This commit is contained in:
James Brooks
2014-12-30 13:57:38 +00:00
parent 21c266bba5
commit aa7d47b4b5
10 changed files with 445 additions and 4 deletions
+23
View File
@@ -0,0 +1,23 @@
<?php
class DashAPIController extends Controller
{
/**
* Updates a component with the entered info.
* @param Component $component
* @return array
*/
public function postUpdateComponent(Component $component)
{
$componentData = Input::all();
unset($componentData['_token']);
if ($component->update($componentData))
{
return $component;
}
else
{
App::abort(500);
}
}
}