Push changes that support creations of service packs and basic listing

This commit is contained in:
Dane Everitt 2016-11-15 20:20:32 -05:00
parent 1f47eda3b3
commit a1bc6fa2d3
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
15 changed files with 654 additions and 49 deletions

View file

@ -430,6 +430,32 @@ class AdminRoutes {
]);
});
// Service Packs
$router->group([
'prefix' => 'admin/services/packs',
'middleware' => [
'auth',
'admin',
'csrf'
]
], function () use ($router) {
$router->get('/new/{option?}', [
'as' => 'admin.services.packs.new',
'uses' => 'Admin\PackController@new'
]);
$router->post('/new', [
'uses' => 'Admin\PackController@create'
]);
$router->get('/for/{option}', [
'as' => 'admin.services.packs.for',
'uses' => 'Admin\PackController@list'
]);
$router->get('/edit/{pack}', [
'as' => 'admin.services.packs.edit',
'uses' => 'Admin\PackController@edit'
]);
});
}
}