2016-09-05 20:21:36 +00:00
|
|
|
<?php
|
2017-11-19 22:30:00 +00:00
|
|
|
|
2017-10-07 23:08:43 +00:00
|
|
|
/*
|
2017-11-19 22:30:00 +00:00
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| User Controller Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Endpoint: /api/admin/users
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
Route::group(['prefix' => '/users'], function () {
|
|
|
|
Route::get('/', 'Users\UserController@index')->name('api.admin.user.list');
|
2017-12-16 17:31:18 +00:00
|
|
|
Route::get('/{user}', 'Users\UserController@view')->name('api.admin.user.view');
|
2017-11-19 22:30:00 +00:00
|
|
|
|
2017-12-16 17:31:18 +00:00
|
|
|
Route::post('/', 'Users\UserController@store')->name('api.admin.user.store');
|
|
|
|
Route::put('/{user}', 'Users\UserController@update')->name('api.admin.user.update');
|
2017-11-19 22:30:00 +00:00
|
|
|
|
2017-12-16 17:31:18 +00:00
|
|
|
Route::delete('/{user}', 'Users\UserController@delete')->name('api.admin.user.delete');
|
2017-11-19 22:30:00 +00:00
|
|
|
});
|
2017-12-17 20:57:05 +00:00
|
|
|
|
|
|
|
Route::group(['prefix' => '/nodes'], function () {
|
|
|
|
Route::get('/', 'Nodes\NodeController@index')->name('api.admin.node.list');
|
|
|
|
Route::get('/{node}', 'Nodes\NodeController@view')->name('api.admin.node.view');
|
|
|
|
});
|