mirror of
https://github.com/pelican-dev/panel.git
synced 2026-05-04 18:00:48 +03:00
Add throwIf to daemonRepository (#1301)
This commit is contained in:
@@ -9,6 +9,7 @@ use App\Repositories\Daemon\DaemonPowerRepository;
|
||||
use App\Http\Controllers\Api\Client\ClientApiController;
|
||||
use App\Http\Requests\Api\Client\Servers\SendPowerRequest;
|
||||
use Dedoc\Scramble\Attributes\Group;
|
||||
use Illuminate\Http\Client\ConnectionException;
|
||||
|
||||
#[Group('Server', weight: 2)]
|
||||
class PowerController extends ClientApiController
|
||||
@@ -25,6 +26,8 @@ class PowerController extends ClientApiController
|
||||
* Send power action
|
||||
*
|
||||
* Send a power action to a server.
|
||||
*
|
||||
* @throws ConnectionException
|
||||
*/
|
||||
public function index(SendPowerRequest $request, Server $server): Response
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user