Add endpoint logic necessary to reset server states if they get stuck installing/restoring when wings restarts

This commit is contained in:
Dane Everitt 2021-02-23 21:20:02 -08:00
parent 3b60004392
commit 1b2c4931ee
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
3 changed files with 106 additions and 0 deletions

View file

@ -6,6 +6,7 @@ use Illuminate\Support\Facades\Route;
Route::post('/sftp/auth', 'SftpAuthenticationController');
Route::get('/servers', 'Servers\ServerDetailsController@list');
Route::post('/servers/reset', 'Servers\ServerDetailsController@resetState');
Route::group(['prefix' => '/servers/{uuid}'], function () {
Route::get('/', 'Servers\ServerDetailsController');