2017-09-24 03:45:25 +02:00
|
|
|
<?php
|
2018-03-02 02:19:19 +01:00
|
|
|
|
2017-10-06 06:09:43 +02:00
|
|
|
Route::get('/authenticate/{token}', 'ValidateKeyController@index')->name('api.remote.authenticate');
|
2019-09-09 02:48:37 +02:00
|
|
|
Route::post('/websocket/{token}', 'ValidateWebsocketController')->name('api.remote.authenticate_websocket');
|
2018-03-02 02:19:19 +01:00
|
|
|
Route::post('/download-file', 'FileDownloadController@index')->name('api.remote.download_file');
|
2017-10-06 06:09:43 +02:00
|
|
|
|
2017-10-08 00:21:41 +02:00
|
|
|
Route::group(['prefix' => '/eggs'], function () {
|
2017-10-09 04:36:22 +02:00
|
|
|
Route::get('/', 'EggRetrievalController@index')->name('api.remote.eggs');
|
2017-10-08 00:21:41 +02:00
|
|
|
Route::get('/{uuid}', 'EggRetrievalController@download')->name('api.remote.eggs.download');
|
2017-10-06 06:09:43 +02:00
|
|
|
});
|
2017-10-25 06:35:25 +02:00
|
|
|
|
2017-11-05 22:36:37 +01:00
|
|
|
Route::group(['prefix' => '/scripts'], function () {
|
|
|
|
Route::get('/{uuid}', 'EggInstallController@index')->name('api.remote.scripts');
|
|
|
|
});
|
|
|
|
|
2017-10-25 06:35:25 +02:00
|
|
|
Route::group(['prefix' => '/sftp'], function () {
|
|
|
|
Route::post('/', 'SftpController@index')->name('api.remote.sftp');
|
|
|
|
});
|