Introduction
Introduction Statistics Contact Development Disclaimer Help
changing route page to the torrent list - seedlinux - Torrent indexing tool ope…
Log
Files
Refs
README
---
commit 101c3811bd6468dba0c444f4a59f380ca8544f52
parent 50ff6fab0f3366b87c404e547ab4cdf27e2b8f13
Author: Jay Scott <[email protected]>
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(-)
---
diff --git a/controllers/torrents_controller.js b/controllers/torrents_controll…
@@ -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;
You are viewing proxied material from jay.scot. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.