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;
|
2022-05-14 21:51:05 +02:00
|
|
|
use Pterodactyl\Http\Controllers\Api\Remote;
|
2017-10-06 06:09:43 +02:00
|
|
|
|
2019-12-08 01:14:04 +01:00
|
|
|
// Routes for the Wings daemon.
|
2022-05-14 21:51:05 +02:00
|
|
|
Route::post('/sftp/auth', Remote\SftpAuthenticationController::class);
|
2020-04-10 21:04:11 +02:00
|
|
|
|
2022-05-14 21:51:05 +02:00
|
|
|
Route::get('/servers', [Remote\Servers\ServerDetailsController::class, 'list']);
|
|
|
|
Route::post('/servers/reset', [Remote\Servers\ServerDetailsController::class, 'resetState']);
|
2022-07-09 23:45:38 +02:00
|
|
|
Route::post('/activity', Remote\ActivityProcessingController::class);
|
2020-04-10 21:04:11 +02:00
|
|
|
|
2019-09-23 00:30:53 +02:00
|
|
|
Route::group(['prefix' => '/servers/{uuid}'], function () {
|
2022-05-14 21:51:05 +02:00
|
|
|
Route::get('/', Remote\Servers\ServerDetailsController::class);
|
|
|
|
Route::get('/install', [Remote\Servers\ServerInstallController::class, 'index']);
|
|
|
|
Route::post('/install', [Remote\Servers\ServerInstallController::class, 'store']);
|
2020-04-05 01:07:09 +02:00
|
|
|
|
2022-05-14 21:51:05 +02:00
|
|
|
Route::get('/transfer/failure', [Remote\Servers\ServerTransferController::class, 'failure']);
|
|
|
|
Route::get('/transfer/success', [Remote\Servers\ServerTransferController::class, 'success']);
|
2022-12-01 19:49:54 +01:00
|
|
|
Route::post('/transfer/failure', [Remote\Servers\ServerTransferController::class, 'failure']);
|
|
|
|
Route::post('/transfer/success', [Remote\Servers\ServerTransferController::class, '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 () {
|
2022-05-14 21:51:05 +02:00
|
|
|
Route::get('/{backup}', Remote\Backups\BackupRemoteUploadController::class);
|
|
|
|
Route::post('/{backup}', [Remote\Backups\BackupStatusController::class, 'index']);
|
|
|
|
Route::post('/{backup}/restore', [Remote\Backups\BackupStatusController::class, 'restore']);
|
2019-09-23 00:30:53 +02:00
|
|
|
});
|