Return videos ordered by upload date
This commit is contained in:
parent
5668413dfb
commit
d5521074fe
@ -25,7 +25,7 @@ namespace YTManager.Controllers
|
||||
[HttpGet]
|
||||
public IEnumerable<Video> GetVideos()
|
||||
{
|
||||
return _context.Videos;
|
||||
return _context.Videos.OrderByDescending(i => i.Uploaded);
|
||||
}
|
||||
|
||||
// GET: api/Videos/5
|
||||
|
Loading…
Reference in New Issue
Block a user