Return videos ordered by upload date

This commit is contained in:
hak8or 2017-09-03 03:24:16 -04:00
parent 5668413dfb
commit d5521074fe
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ namespace YTManager.Controllers
[HttpGet] [HttpGet]
public IEnumerable<Video> GetVideos() public IEnumerable<Video> GetVideos()
{ {
return _context.Videos; return _context.Videos.OrderByDescending(i => i.Uploaded);
} }
// GET: api/Videos/5 // GET: api/Videos/5