Skip to content

Commit

Permalink
Fix to downloads json route
Browse files Browse the repository at this point in the history
  • Loading branch information
Unreal-Dan committed Aug 22, 2024
1 parent 7183391 commit 86ea20f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions routes/downloads.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,7 @@ router.get('/json', async function(req, res, next) {
}

// Render the downloads view, passing the latest downloads info
res.render('downloads', {
title: 'Vortex Downloads',
latestDownloads: latestDownloads,
req: req
});
res.json(latestDownloads);
} catch (err) {
console.error(err);
next(err); // Error handling
Expand Down

0 comments on commit 86ea20f

Please sign in to comment.