mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-17 05:43:45 +02:00
Move everything around as needed to get things setup for the client API
This commit is contained in:
28
routes/api-client.php
Normal file
28
routes/api-client.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
use Pterodactyl\Http\Middleware\Api\Client\AuthenticateClientAccess;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Client Control API
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Endpoint: /api/client
|
||||
|
|
||||
*/
|
||||
Route::get('/', 'ClientController@index')->name('api.client.index');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Client Control API
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Endpoint: /api/client/servers/{server}
|
||||
|
|
||||
*/
|
||||
Route::group(['prefix' => '/servers/{server}', 'middleware' => [AuthenticateClientAccess::class]], function () {
|
||||
Route::get('/', 'Server\ServerController@index')->name('api.client.servers.view');
|
||||
|
||||
Route::post('/command', 'Server\CommandController@index')->name('api.client.servers.command');
|
||||
Route::post('/power', 'Server\PowerController@index')->name('api.client.servers.power');
|
||||
});
|
||||
Reference in New Issue
Block a user