1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-11-25 10:32:31 +01:00
Pterodactyl-Panel/routes/api-remote.php

29 lines
1.4 KiB
PHP
Raw Normal View History

<?php
use Illuminate\Support\Facades\Route;
use Pterodactyl\Http\Controllers\Api\Remote;
2019-12-08 01:14:04 +01:00
// 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']);
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-17 19:21:51 +02:00
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']);
});