mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-21 01:12:14 +00:00
api refactoring
This commit is contained in:
20
src/Domain/Settings/Controllers/GetConfigController.php
Normal file
20
src/Domain/Settings/Controllers/GetConfigController.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace Domain\Settings\Controllers;
|
||||
|
||||
use Domain\Settings\Actions\GetConfigAction;
|
||||
use App\Http\Controllers\Controller;
|
||||
use Illuminate\Http\JsonResponse;
|
||||
|
||||
|
||||
class GetConfigController extends Controller
|
||||
{
|
||||
public function __construct(
|
||||
public GetConfigAction $getConfigAction,
|
||||
) {}
|
||||
|
||||
public function __invoke(): JsonResponse
|
||||
{
|
||||
return response()->json(($this->getConfigAction)());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user