name('api.client.index'); Route::group(['prefix' => '/account'], function () { Route::get('/', 'AccountController@index')->name('api.client.account'); }); /* |-------------------------------------------------------------------------- | Client Control API |-------------------------------------------------------------------------- | | Endpoint: /api/client/servers/{server} | */ Route::group(['prefix' => '/servers/{server}', 'middleware' => [AuthenticateClientAccess::class]], function () { Route::get('/', 'Servers\ServerController@index')->name('api.client.servers.view'); Route::get('/utilization', 'Servers\ResourceUtilizationController@index') ->name('api.client.servers.resources'); Route::post('/command', 'Servers\CommandController@index')->name('api.client.servers.command'); Route::post('/power', 'Servers\PowerController@index')->name('api.client.servers.power'); });