2016-09-05 22:21:36 +02:00
|
|
|
<?php
|
2017-11-19 23:30:00 +01:00
|
|
|
|
2017-10-08 01:08:43 +02:00
|
|
|
/*
|
2017-11-19 23:30:00 +01: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 18:31:18 +01:00
|
|
|
Route::get('/{user}', 'Users\UserController@view')->name('api.admin.user.view');
|
2017-11-19 23:30:00 +01:00
|
|
|
|
2017-12-16 18:31:18 +01:00
|
|
|
Route::post('/', 'Users\UserController@store')->name('api.admin.user.store');
|
2018-01-01 22:11:44 +01:00
|
|
|
Route::patch('/{user}', 'Users\UserController@update')->name('api.admin.user.update');
|
2017-11-19 23:30:00 +01:00
|
|
|
|
2017-12-16 18:31:18 +01:00
|
|
|
Route::delete('/{user}', 'Users\UserController@delete')->name('api.admin.user.delete');
|
2017-11-19 23:30:00 +01:00
|
|
|
});
|
2017-12-17 21:57:05 +01:00
|
|
|
|
2018-01-01 22:11:44 +01:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Node Controller Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Endpoint: /api/admin/nodes
|
|
|
|
|
|
|
|
|
*/
|
2017-12-17 21:57:05 +01: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');
|
2018-01-01 22:11:44 +01:00
|
|
|
|
|
|
|
Route::post('/', 'Nodes\NodeController@store')->name('api.admin.node.store');
|
|
|
|
Route::patch('/{node}', 'Nodes\NodeController@update')->name('api.admin.node.update');
|
|
|
|
|
|
|
|
Route::delete('/{node}', 'Nodes\NodeController@delete')->name('api.admin.node.delete');
|
2017-12-17 21:57:05 +01:00
|
|
|
});
|