update: torrent api

This commit is contained in:
HDVinnie
2021-06-16 20:58:52 -04:00
parent 481d8133dd
commit 930818a1f0
@@ -53,7 +53,10 @@ class TorrentController extends BaseController
*/
public function index()
{
return new TorrentsResource(Torrent::with(['category', 'type', 'resolution'])->latest()->paginate());
return new TorrentsResource(Torrent::with(['category', 'type', 'resolution'])
->orderBy('sticky', 'desc')
->orderBy('bumped_at', 'desc')
->paginate(25));
}
/**