Add nests & eggs
Cleanup middleware handling and parameters on controllers...
This commit is contained in:
parent
de07b3cc7f
commit
8afced3410
26 changed files with 737 additions and 446 deletions
|
@ -38,6 +38,8 @@ Route::group(['prefix' => '/nodes'], function () {
|
|||
Route::group(['prefix' => '/{node}/allocations'], function () {
|
||||
Route::get('/', 'Nodes\AllocationController@index')->name('api.application.allocations');
|
||||
|
||||
Route::post('/', 'Nodes\AllocationController@store');
|
||||
|
||||
Route::delete('/{allocation}', 'Nodes\AllocationController@delete')->name('api.application.allocations.view');
|
||||
});
|
||||
});
|
||||
|
@ -94,3 +96,22 @@ Route::group(['prefix' => '/servers'], function () {
|
|||
Route::delete('/{database}', 'Servers\DatabaseController@delete');
|
||||
});
|
||||
});
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Nest Controller Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Endpoint: /api/application/nests
|
||||
|
|
||||
*/
|
||||
Route::group(['prefix' => '/nests'], function () {
|
||||
Route::get('/', 'Nests\NestController@index')->name('api.application.nests');
|
||||
Route::get('/{nest}', 'Nests\NestController@view')->name('api.application.nests.view');
|
||||
|
||||
// Egg Management Endpoint
|
||||
Route::group(['prefix' => '/{nest}/eggs'], function () {
|
||||
Route::get('/', 'Nests\EggController@index')->name('api.application.nests.eggs');
|
||||
Route::get('/{egg}', 'Nests\EggController@view')->name('api.application.nests.eggs.view');
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue