styling update
This commit is contained in:
parent
6ec94ad0c2
commit
051339d34b
@ -70,7 +70,11 @@ class ItemController extends Controller
|
|||||||
public function getHierarchy(Request $request): JsonResponse
|
public function getHierarchy(Request $request): JsonResponse
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
return response()->json($this->itemsCollection->getHierarchy($request->id, $request->locale ?? 'en'));
|
return response()->json(
|
||||||
|
$this->itemsCollection->getHierarchy(
|
||||||
|
$request->query('id'), $request->query('locale', 'en')
|
||||||
|
)
|
||||||
|
);
|
||||||
} catch (Throwable $exception) {
|
} catch (Throwable $exception) {
|
||||||
Log::error($exception->getMessage());
|
Log::error($exception->getMessage());
|
||||||
Log::error($exception->getTraceAsString());
|
Log::error($exception->getTraceAsString());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user