Add API endpoint to get a server by external ID
This commit is contained in:
parent
a1e704d3a7
commit
fb1b2406b5
4 changed files with 82 additions and 0 deletions
|
@ -74,6 +74,7 @@ Route::group(['prefix' => '/locations'], function () {
|
|||
Route::group(['prefix' => '/servers'], function () {
|
||||
Route::get('/', 'Servers\ServerController@index')->name('api.application.servers');
|
||||
Route::get('/{server}', 'Servers\ServerController@view')->name('api.application.servers.view');
|
||||
Route::get('/external/{external_id}', 'Servers\ExternalServerController@index')->name('api.application.servers.external');
|
||||
|
||||
Route::patch('/{server}/details', 'Servers\ServerDetailsController@details')->name('api.application.servers.details');
|
||||
Route::patch('/{server}/build', 'Servers\ServerDetailsController@build')->name('api.application.servers.build');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue