mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 18:04:46 +02:00

* update scramble * cleanup application api endpoints * cleanup client api endpoints * fix security schema and make docs homepage nicer * remove duplicate myclabs/deep-copy * style(api-docs): use Blade template and Tailwind for styling * Publish scramble view * Use localStorage theme instead of config * Update routes/docs.php Co-authored-by: Lance Pioch <git@lance.sh> --------- Co-authored-by: Quinten <67589015+QuintenQVD0@users.noreply.github.com> Co-authored-by: RMartinOscar <40749467+RMartinOscar@users.noreply.github.com> Co-authored-by: Lance Pioch <git@lance.sh>
26 lines
812 B
PHP
26 lines
812 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Api\Application\Nodes;
|
|
|
|
use App\Models\Node;
|
|
use Illuminate\Http\JsonResponse;
|
|
use App\Http\Requests\Api\Application\Nodes\GetNodeRequest;
|
|
use App\Http\Controllers\Api\Application\ApplicationApiController;
|
|
use Dedoc\Scramble\Attributes\Group;
|
|
|
|
#[Group('Node', weight: 1)]
|
|
class NodeConfigurationController extends ApplicationApiController
|
|
{
|
|
/**
|
|
* Get node configuration
|
|
*
|
|
* Returns the configuration information for a node. This allows for automated deployments
|
|
* to remote machines so long as an API key is provided to the machine to make the request
|
|
* with, and the node is known.
|
|
*/
|
|
public function __invoke(GetNodeRequest $request, Node $node): JsonResponse
|
|
{
|
|
return new JsonResponse($node->getConfiguration());
|
|
}
|
|
}
|