양신희

router 수정

......@@ -52,11 +52,11 @@ module.exports = function (app) {
res.render('main', { title: 'Chess' });
});
// app.post('/', function(req,res){
// console.log('post');
// name =req.body.name;
// res.redirect('/search');
// })
app.post('/', function(req,res){
console.log('post');
name =req.body.name;
res.redirect('/search');
})
app.get('/search', function (req, res) {
name = req.query.summoner;
......