forked from pyrohost/pyrodactyl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
api-remote.php
28 lines (22 loc) · 1.43 KB
/
api-remote.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
use Illuminate\Support\Facades\Route;
use Pterodactyl\Http\Controllers\Api\Remote;
// Routes for the Wings daemon.
Route::post('/sftp/auth', Remote\SftpAuthenticationController::class);
Route::get('/servers', [Remote\Servers\ServerDetailsController::class, 'list']);
Route::post('/servers/reset', [Remote\Servers\ServerDetailsController::class, 'resetState']);
Route::post('/activity', Remote\ActivityProcessingController::class);
Route::group(['prefix' => '/servers/{uuid}'], function () {
Route::get('/', Remote\Servers\ServerDetailsController::class);
Route::get('/install', [Remote\Servers\ServerInstallController::class, 'index']);
Route::post('/install', [Remote\Servers\ServerInstallController::class, 'store']);
Route::get('/transfer/failure', [Remote\Servers\ServerTransferController::class, 'failure']);
Route::get('/transfer/success', [Remote\Servers\ServerTransferController::class, 'success']);
Route::post('/transfer/failure', [Remote\Servers\ServerTransferController::class, 'failure']);
Route::post('/transfer/success', [Remote\Servers\ServerTransferController::class, 'success']);
});
Route::group(['prefix' => '/backups'], function () {
Route::get('/{backup}', Remote\Backups\BackupRemoteUploadController::class);
Route::post('/{backup}', [Remote\Backups\BackupStatusController::class, 'index']);
Route::post('/{backup}/restore', [Remote\Backups\BackupStatusController::class, 'restore']);
});