Fix problems after rebase, move RoleController to Api\Application
This commit is contained in:
parent
333c9312d4
commit
7369167e28
8 changed files with 109 additions and 90 deletions
|
@ -120,3 +120,20 @@ Route::group(['prefix' => '/nests'], function () {
|
|||
Route::get('/{egg}', 'Nests\EggController@view')->name('api.application.nests.eggs.view');
|
||||
});
|
||||
});
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Role Controller Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Endpoint: /api/application/roles
|
||||
|
|
||||
*/
|
||||
|
||||
Route::group(['prefix' => '/roles'], function () {
|
||||
Route::get('/', 'RoleController@index')->name('api.application.roles');
|
||||
|
||||
Route::post('/', 'RoleController@create');
|
||||
|
||||
Route::delete('/{role}', 'RoleController@delete');
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue