Add API endpoint to get a server by external ID

This commit is contained in:
Dane Everitt 2018-02-24 14:09:09 -06:00
parent a1e704d3a7
commit fb1b2406b5
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
4 changed files with 82 additions and 0 deletions

View file

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