Add server details modification endpoint to API.

This commit is contained in:
Dane Everitt 2018-01-20 16:03:23 -06:00
parent 3e327b8b0e
commit 17f6f3eeb6
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
7 changed files with 160 additions and 267 deletions

View file

@ -72,6 +72,8 @@ 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::patch('/{server}/details', 'Servers\ServerDetailsController@details')->name('api.application.servers.details');
Route::post('/{server}/suspend', 'Servers\ServerManagementController@suspend')->name('api.application.servers.suspend');
Route::post('/{server}/unsuspend', 'Servers\ServerManagementController@unsuspend')->name('api.application.servers.unsuspend');
Route::post('/{server}/reinstall', 'Servers\ServerManagementController@reinstall')->name('api.application.servers.reinstall');