mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-21 01:12:14 +00:00
api refactoring part 2
This commit is contained in:
@@ -1,20 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace Domain\Settings\Controllers;
|
||||
|
||||
use Domain\Settings\Actions\GetConfigAction;
|
||||
use App\Http\Controllers\Controller;
|
||||
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)());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user