mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-09 09:53:44 +02:00
fix up API route return
This commit is contained in:
@@ -62,8 +62,7 @@ class NodeController extends BaseController
|
||||
*/
|
||||
public function list(Request $request)
|
||||
{
|
||||
$nodes = Models\Node::paginate(50);
|
||||
return $this->response->paginator($nodes, new NodeTransformer);
|
||||
return Models\Node::all()->toArray();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -170,11 +169,11 @@ class NodeController extends BaseController
|
||||
*/
|
||||
public function allocations(Request $request)
|
||||
{
|
||||
$allocations = Models\Allocation::paginate(100);
|
||||
$allocations = Models\Allocation::all();
|
||||
if ($allocations->count() < 1) {
|
||||
throw new NotFoundHttpException('No allocations have been created.');
|
||||
}
|
||||
return $this->response->paginator($allocations, new AllocationTransformer);
|
||||
return $allocations;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user