Files
vuefilemanager/src/Domain/Settings/Controllers/GetConfigController.php
2022-05-13 10:43:45 +02:00

20 lines
427 B
PHP

<?php
namespace Domain\Settings\Controllers;
use Illuminate\Http\JsonResponse;
use App\Http\Controllers\Controller;
use Domain\Settings\Actions\GetConfigAction;
class GetConfigController extends Controller
{
public function __construct(
public GetConfigAction $getConfigAction,
) {
}
public function __invoke(): JsonResponse
{
return response()->json(($this->getConfigAction)());
}
}