PteroTheme/routes/api-admin.php

25 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');
});