mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 19:14:45 +02:00
Sort server vars for front end
This commit is contained in:
parent
d656f21cd9
commit
44cc5a8132
@ -31,7 +31,7 @@ class StartupController extends ClientApiController
|
|||||||
$startup = $this->startupCommandService->handle($server);
|
$startup = $this->startupCommandService->handle($server);
|
||||||
|
|
||||||
return $this->fractal->collection(
|
return $this->fractal->collection(
|
||||||
$server->variables()->where('user_viewable', true)->get()
|
$server->variables()->orderBy('sort')->where('user_viewable', true)->get()
|
||||||
)
|
)
|
||||||
->transformWith($this->getTransformer(EggVariableTransformer::class))
|
->transformWith($this->getTransformer(EggVariableTransformer::class))
|
||||||
->addMeta([
|
->addMeta([
|
||||||
|
Loading…
x
Reference in New Issue
Block a user