Toggle navigation
Toggle navigation
This project
Loading...
Sign in
양신희
/
Chess.gg
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
1
Network
Create a new issue
Commits
Issue Boards
Authored by
양신희
2020-06-25 21:13:50 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
84e3d99d5872bba65468d65326cc89dccfd64ac1
84e3d99d
1 parent
877cc409
router 수정
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
Chess/router/index.js
Chess/router/index.js
View file @
84e3d99
...
...
@@ -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
;
...
...
Please
register
or
login
to post a comment