Showing
1 changed file
with
5 additions
and
5 deletions
... | @@ -52,11 +52,11 @@ module.exports = function (app) { | ... | @@ -52,11 +52,11 @@ module.exports = function (app) { |
52 | res.render('main', { title: 'Chess' }); | 52 | res.render('main', { title: 'Chess' }); |
53 | }); | 53 | }); |
54 | 54 | ||
55 | - // app.post('/', function(req,res){ | 55 | + app.post('/', function(req,res){ |
56 | - // console.log('post'); | 56 | + console.log('post'); |
57 | - // name =req.body.name; | 57 | + name =req.body.name; |
58 | - // res.redirect('/search'); | 58 | + res.redirect('/search'); |
59 | - // }) | 59 | + }) |
60 | app.get('/search', function (req, res) { | 60 | app.get('/search', function (req, res) { |
61 | 61 | ||
62 | name = req.query.summoner; | 62 | name = req.query.summoner; | ... | ... |
-
Please register or login to post a comment