Added ability to edit hardware components
This commit is contained in:
@ -17,7 +17,13 @@ $app->group('/component', function(RouteCollectorProxy $group) {
|
||||
$group->get('/list', '\\BitGoblin\\Colossus\\Controllers\\ComponentController:getList')->setName('component.list');
|
||||
$group->get('/add', '\\BitGoblin\\Colossus\\Controllers\\ComponentController:getAdd')->setName('component.add');
|
||||
$group->post('/add', '\\BitGoblin\\Colossus\\Controllers\\ComponentController:postAdd');
|
||||
$group->get('/{component_id}', '\\BitGoblin\\Colossus\\Controllers\\ComponentController:getView')->setName('component.view');
|
||||
|
||||
$group->group('/{component_id}', function(RouteCollectorProxy $component) {
|
||||
$component->get('', '\\BitGoblin\\Colossus\\Controllers\\ComponentController:getView')->setName('component.view');
|
||||
|
||||
$component->get('/edit', '\\BitGoblin\\Colossus\\Controllers\\ComponentController:getEdit')->setName('component.edit');
|
||||
$component->post('/edit', '\\BitGoblin\\Colossus\\Controllers\\ComponentController:postEdit');
|
||||
});
|
||||
});
|
||||
|
||||
$app->group('/test', function(RouteCollectorProxy $group) {
|
||||
|
Reference in New Issue
Block a user