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;
|
2017-10-06 06:09:43 +02:00
|
|
|
|
2019-09-23 00:30:53 +02:00
|
|
|
Route::get('/authenticate/{token}', 'ValidateKeyController@index');
|
|
|
|
Route::post('/download-file', 'FileDownloadController@index');
|
2017-10-25 06:35:25 +02:00
|
|
|
|
2019-12-08 01:14:04 +01:00
|
|
|
// Routes for the Wings daemon.
|
|
|
|
Route::post('/sftp/auth', 'SftpAuthenticationController');
|
2019-09-23 00:30:53 +02:00
|
|
|
Route::group(['prefix' => '/servers/{uuid}'], function () {
|
2019-12-22 22:28:51 +01:00
|
|
|
Route::get('/', 'Servers\ServerDetailsController');
|
2020-01-19 22:50:38 +01:00
|
|
|
Route::get('/install', 'Servers\ServerInstallController@index');
|
|
|
|
Route::post('/install', 'Servers\ServerInstallController@store');
|
2020-04-04 08:50:06 +02:00
|
|
|
Route::post('/archive', 'Servers\ServerTransferController@archive');
|
2020-04-05 00:16:18 +02:00
|
|
|
Route::get('/transfer/failure', 'Servers\ServerTransferController@failure');
|
|
|
|
Route::get('/transfer/success', 'Servers\ServerTransferController@success');
|
2019-09-23 00:30:53 +02:00
|
|
|
});
|