misc_pterodactyl-panel/routes/api-remote.php
2020-05-17 14:20:43 -07:00

22 lines
820 B
PHP

<?php
use Illuminate\Support\Facades\Route;
// Routes for the Wings daemon.
Route::post('/sftp/auth', 'SftpAuthenticationController');
Route::get('/servers', 'Servers\ServerDetailsController@list');
Route::group(['prefix' => '/servers/{uuid}'], function () {
Route::get('/', 'Servers\ServerDetailsController');
Route::get('/install', 'Servers\ServerInstallController@index');
Route::post('/install', 'Servers\ServerInstallController@store');
Route::post('/archive', 'Servers\ServerTransferController@archive');
Route::get('/transfer/failure', 'Servers\ServerTransferController@failure');
Route::get('/transfer/success', 'Servers\ServerTransferController@success');
});
Route::group(['prefix' => '/backups'], function () {
Route::post('/{backup}', 'Backups\BackupStatusController');
});