Add location control through API

This commit is contained in:
Dane Everitt 2018-01-03 21:14:53 -06:00
parent 15289b76a7
commit f32cee3ae5
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
4 changed files with 176 additions and 19 deletions

View file

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