JSON QUEUE
This commit is contained in:
parent
f32e9745c1
commit
9b67fdec21
|
|
@ -10,12 +10,15 @@ class RenderController extends Controller
|
||||||
public function getQueue(Request $request) {
|
public function getQueue(Request $request) {
|
||||||
$queue = RenderQueue::all();
|
$queue = RenderQueue::all();
|
||||||
|
|
||||||
$string = '';
|
foreach ($queue as $queueitem) {
|
||||||
foreach ($queue as $queueitem) {
|
$queue_array[] = [
|
||||||
$string = $string . $queueitem->type . ':' . $queueitem->target_id . ':' . $queueitem->id . ';';
|
'Type' => $queueitem->type,
|
||||||
|
'Target_ID' => $queueitem->target_id,
|
||||||
|
'Queue_ID' => $queueitem->id,
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
return substr_replace($string, "", -1);
|
return response()->json($queue_array);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function upload(Request $request) {
|
public function upload(Request $request) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue