forked from Alex/Pterodactyl-Panel
23 lines
809 B
PHP
23 lines
809 B
PHP
<?php
|
|
/**
|
|
* Pterodactyl - Panel
|
|
* Copyright (c) 2015 - 2017 Dane Everitt <dane@daneeveritt.com>.
|
|
*
|
|
* This software is licensed under the terms of the MIT license.
|
|
* https://opensource.org/licenses/MIT
|
|
*/
|
|
Route::get('/authenticate/{token}', 'ValidateKeyController@index')->name('api.remote.authenticate');
|
|
|
|
Route::group(['prefix' => '/eggs'], function () {
|
|
Route::get('/', 'EggRetrievalController@index')->name('api.remote.eggs');
|
|
Route::get('/{uuid}', 'EggRetrievalController@download')->name('api.remote.eggs.download');
|
|
});
|
|
|
|
Route::group(['prefix' => '/scripts'], function () {
|
|
Route::get('/{uuid}', 'EggInstallController@index')->name('api.remote.scripts');
|
|
});
|
|
|
|
Route::group(['prefix' => '/sftp'], function () {
|
|
Route::post('/', 'SftpController@index')->name('api.remote.sftp');
|
|
});
|