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