misc_pterodactyl-panel/routes/api-remote.php

33 lines
1.2 KiB
PHP
Raw Normal View History

<?php
use Illuminate\Support\Facades\Route;
2021-01-13 17:03:27 +00:00
/*
|--------------------------------------------------------------------------
| Wings Remote API Routes
|--------------------------------------------------------------------------
|
| Endpoint: /api/remote
|
*/
2019-12-08 00:14:04 +00:00
Route::post('/sftp/auth', 'SftpAuthenticationController');
Route::get('/servers', 'Servers\ServerDetailsController@list');
Route::post('/servers/reset', 'Servers\ServerDetailsController@resetState');
Route::group(['prefix' => '/servers/{uuid}'], function () {
Route::get('/', 'Servers\ServerDetailsController');
2020-01-19 21:50:38 +00:00
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');
2020-04-17 17:21:51 +00:00
});
2020-04-17 17:21:51 +00:00
Route::group(['prefix' => '/backups'], function () {
Route::get('/{backup}', 'Backups\BackupRemoteUploadController');
Route::post('/{backup}', 'Backups\BackupStatusController@index');
Route::post('/{backup}/restore', 'Backups\BackupStatusController@restore');
});