changing route page to the torrent list - seedlinux - Torrent indexing tool opensource torrents with share ratio's etc.
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) commit 101c3811bd6468dba0c444f4a59f380ca8544f52
(DIR) parent 50ff6fab0f3366b87c404e547ab4cdf27e2b8f13
(HTM) Author: Jay Scott <jay@jayscott.co.uk>
Date: Sat, 1 Jul 2017 11:44:46 +0100
changing route page to the torrent list
Diffstat:
M controllers/torrents_controller.js | 2 +-
M routes/torrent_route.js | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
---
(DIR) 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 });
}
(DIR) 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;