Add more application api routes for Nests
This commit is contained in:
parent
b1d30c1bde
commit
0511f75747
7 changed files with 205 additions and 5 deletions
|
@ -114,6 +114,12 @@ 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');
|
||||
|
||||
Route::post('/', 'Nests\NestController@store');
|
||||
|
||||
Route::patch('/{nest}', 'Nests\NestController@update');
|
||||
|
||||
Route::delete('/{nest}', 'Nests\NestController@delete');
|
||||
|
||||
// Egg Management Endpoint
|
||||
Route::group(['prefix' => '/{nest}/eggs'], function () {
|
||||
Route::get('/', 'Nests\EggController@index')->name('api.application.nests.eggs');
|
||||
|
@ -136,5 +142,7 @@ Route::group(['prefix' => '/roles'], function () {
|
|||
|
||||
Route::post('/', 'Roles\RoleController@store');
|
||||
|
||||
Route::patch('/{role}', 'Roles\RoleController@update');
|
||||
|
||||
Route::delete('/{role}', 'Roles\RoleController@delete');
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue