Node and user API routes implemented.
More attempts at the logic for API permissions, most likely will need continued tweaking in the future, but base is there.
This commit is contained in:
parent
f24b238e30
commit
820d2bf172
15 changed files with 447 additions and 26 deletions
|
@ -74,4 +74,26 @@ Route::group(['prefix' => '/locations'], function () {
|
|||
Route::group(['prefix' => '/nodes'], function () {
|
||||
Route::get('/', 'NodeController@index');
|
||||
Route::get('/{id}', 'NodeController@view');
|
||||
Route::get('/{id}/config', 'NodeController@viewConfig');
|
||||
|
||||
Route::post('/', 'NodeController@store');
|
||||
|
||||
Route::delete('/{id}', 'NodeController@delete');
|
||||
});
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| User Controller Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Endpoint: /api/admin/users
|
||||
|
|
||||
*/
|
||||
Route::group(['prefix' => '/users'], function () {
|
||||
Route::get('/', 'UserController@index');
|
||||
Route::get('/{id}', 'UserController@view');
|
||||
|
||||
Route::post('/', 'UserController@store');
|
||||
|
||||
Route::delete('/{id}', 'UserController@delete');
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue