54b6fb5ebd
Also corrects API format to maintain JSONAPI spec
24 lines
929 B
PHP
24 lines
929 B
PHP
<?php
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| User Controller Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Endpoint: /api/admin/users
|
|
|
|
|
*/
|
|
Route::group(['prefix' => '/users'], function () {
|
|
Route::get('/', 'Users\UserController@index')->name('api.admin.user.list');
|
|
Route::get('/{user}', 'Users\UserController@view')->name('api.admin.user.view');
|
|
|
|
Route::post('/', 'Users\UserController@store')->name('api.admin.user.store');
|
|
Route::put('/{user}', 'Users\UserController@update')->name('api.admin.user.update');
|
|
|
|
Route::delete('/{user}', 'Users\UserController@delete')->name('api.admin.user.delete');
|
|
});
|
|
|
|
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');
|
|
});
|