query('theme'); try { $tree = $editorService->getFileTree($theme); return response()->json($tree); } catch (Exception $e) { return response()->json(['error' => $e->getMessage()], 404); } } }