src/Api/Controller/OrderLinksController.php
public function handle(ServerRequestInterface $request)
    {
        $this->assertAdmin($request->getAttribute('actor'));

        $order = array_get($request->getParsedBody(), 'order');

        foreach ($order as $i => $link) {
            Link::where('id', $link['id'])->update(['position' => $i]);
        }

        return new EmptyResponse(204);
    }
public function handle(ServerRequestInterface $request)
    {
        $this->assertAdmin($request->getAttribute('actor'));

        $order = array_get($request->getParsedBody(), 'order');

        foreach ($order as $i => $link) {
            Link::where('id', $link['id'])->update(['position' => $i]);
        }

        return new EmptyResponse(204);
    }
{@inheritdoc}