2017-09-24 01:45:25 +00:00
|
|
|
<?php
|
2018-03-02 01:19:19 +00:00
|
|
|
|
2019-09-22 22:30:53 +00:00
|
|
|
use Illuminate\Support\Facades\Route;
|
2017-10-06 04:09:43 +00:00
|
|
|
|
2019-12-08 00:14:04 +00:00
|
|
|
// Routes for the Wings daemon.
|
|
|
|
Route::post('/sftp/auth', 'SftpAuthenticationController');
|
2020-04-10 19:04:11 +00:00
|
|
|
|
|
|
|
Route::get('/servers', 'Servers\ServerDetailsController@list');
|
2021-02-24 05:20:02 +00:00
|
|
|
Route::post('/servers/reset', 'Servers\ServerDetailsController@resetState');
|
2020-04-10 19:04:11 +00:00
|
|
|
|
2019-09-22 22:30:53 +00:00
|
|
|
Route::group(['prefix' => '/servers/{uuid}'], function () {
|
2019-12-22 21:28:51 +00:00
|
|
|
Route::get('/', 'Servers\ServerDetailsController');
|
2020-01-19 21:50:38 +00:00
|
|
|
Route::get('/install', 'Servers\ServerInstallController@index');
|
|
|
|
Route::post('/install', 'Servers\ServerInstallController@store');
|
2020-04-04 23:07:09 +00:00
|
|
|
|
2020-04-04 06:50:06 +00:00
|
|
|
Route::post('/archive', 'Servers\ServerTransferController@archive');
|
2020-04-04 22:16:18 +00:00
|
|
|
Route::get('/transfer/failure', 'Servers\ServerTransferController@failure');
|
|
|
|
Route::get('/transfer/success', 'Servers\ServerTransferController@success');
|
2020-04-17 17:21:51 +00:00
|
|
|
});
|
2020-04-04 23:09:39 +00:00
|
|
|
|
2020-04-17 17:21:51 +00:00
|
|
|
Route::group(['prefix' => '/backups'], function () {
|
2020-10-31 23:44:20 +00:00
|
|
|
Route::get('/{backup}', 'Backups\BackupRemoteUploadController');
|
2021-01-19 05:14:49 +00:00
|
|
|
Route::post('/{backup}', 'Backups\BackupStatusController@index');
|
|
|
|
Route::post('/{backup}/restore', 'Backups\BackupStatusController@restore');
|
2019-09-22 22:30:53 +00:00
|
|
|
});
|