mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-24 12:09:02 -05:00
update: torrent api
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user