2017-09-24 01:45:25 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Pterodactyl - Panel
|
|
|
|
* Copyright (c) 2015 - 2017 Dane Everitt <dane@daneeveritt.com>.
|
|
|
|
*
|
2017-09-26 02:43:01 +00:00
|
|
|
* This software is licensed under the terms of the MIT license.
|
|
|
|
* https://opensource.org/licenses/MIT
|
2017-09-24 01:45:25 +00:00
|
|
|
*/
|
2017-10-06 04:09:43 +00:00
|
|
|
Route::get('/authenticate/{token}', 'ValidateKeyController@index')->name('api.remote.authenticate');
|
|
|
|
|
2017-10-07 22:21:41 +00:00
|
|
|
Route::group(['prefix' => '/eggs'], function () {
|
2017-10-09 02:36:22 +00:00
|
|
|
Route::get('/', 'EggRetrievalController@index')->name('api.remote.eggs');
|
2017-10-07 22:21:41 +00:00
|
|
|
Route::get('/{uuid}', 'EggRetrievalController@download')->name('api.remote.eggs.download');
|
2017-10-06 04:09:43 +00:00
|
|
|
});
|
2017-10-25 04:35:25 +00:00
|
|
|
|
2017-11-05 21:36:37 +00:00
|
|
|
Route::group(['prefix' => '/scripts'], function () {
|
|
|
|
Route::get('/{uuid}', 'EggInstallController@index')->name('api.remote.scripts');
|
|
|
|
});
|
|
|
|
|
2017-10-25 04:35:25 +00:00
|
|
|
Route::group(['prefix' => '/sftp'], function () {
|
|
|
|
Route::post('/', 'SftpController@index')->name('api.remote.sftp');
|
|
|
|
});
|