Add location control through API
This commit is contained in:
parent
15289b76a7
commit
f32cee3ae5
4 changed files with 176 additions and 19 deletions
|
@ -35,3 +35,21 @@ Route::group(['prefix' => '/nodes'], function () {
|
|||
|
||||
Route::delete('/{node}', 'Nodes\NodeController@delete')->name('api.admin.node.delete');
|
||||
});
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Location Controller Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Endpoint: /api/admin/locations
|
||||
|
|
||||
*/
|
||||
Route::group(['prefix' => '/locations'], function () {
|
||||
Route::get('/', 'Locations\LocationController@index')->name('api.admin.location.list');
|
||||
Route::get('/{location}', 'Locations\LocationController@view')->name('api.admin.location.view');
|
||||
|
||||
Route::post('/', 'Locations\LocationController@store')->name('api.admin.location.store');
|
||||
Route::patch('/{location}', 'Locations\LocationController@update')->name('api.admin.location.update');
|
||||
|
||||
Route::delete('/{location}', 'Locations\LocationController@delete')->name('api.admin.location.delete');
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue