seedlinux

find open source torrents and stats for people wishing to contribute bandwidth.
git clone git://git.beardyjay.co.uk/seedlinux
Log | Files | Refs | README | LICENSE

commit 487de15d14fed895482239b9d12e4fe6471d1bb3
parent 9f0c6bcecc14006a8a6179a2085fcde1a5df53f0
Author: Jay Scott <jay@jayscott.co.uk>
Date:   Sat,  1 Jul 2017 11:44:46 +0100

changing route page to the torrent list

Diffstat:
Mcontrollers/torrents_controller.js | 2+-
Mroutes/torrent_route.js | 1-
2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/controllers/torrents_controller.js b/controllers/torrents_controller.js @@ -28,7 +28,7 @@ exports.torrent_detail = function(req, res) { }, function(err, results) { if(results.torrent_data == "" ) { console.log(results); - res.redirect('/torrent'); + res.redirect('/'); } else { res.render('details', { title: 'Torrent Details', data: results }); } diff --git a/routes/torrent_route.js b/routes/torrent_route.js @@ -4,7 +4,6 @@ const express = require('express'); const router = express.Router(); const torrent_controller = require('../controllers/torrents_controller'); -router.get('/', torrent_controller.index); router.get('/details/:id', torrent_controller.torrent_detail); module.exports = router;