Toggle navigation
Toggle navigation
This project
Loading...
Sign in
zuzitsu
/
UR_Village
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Suyeon Jung
2020-12-02 17:51:20 +0900
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
5b5ae90beeeebc2e86a5996e2f1dc81933cb86c4
5b5ae90b
2 parents
4abe902e
ad66cdf2
Modify category view
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
routes/category.js
routes/category.js
View file @
5b5ae90
...
...
@@ -9,6 +9,13 @@ let SIGUNDONG_CODE;
// 사용자가 index 페이지에서 주소를 입력하고 넘어오면
router
.
post
(
'/'
,
function
(
req
,
res
)
{
<<<<<<<
HEAD
=======
function
callback
(
cb
){
cb
();
}
console
.
log
(
req
.
body
);
>>>>>>>
ad66cdf2973a2d21cfa2b0f6a672f59fa8a88160
let
userLocation
=
req
.
body
.
userLocation
;
// let userSi = req.body.si
// let userDong = req.body.dong;
...
...
@@ -34,6 +41,17 @@ router.post('/', function(req, res) {
xyList
.
push
(
result
.
documents
[
0
].
address
.
x
);
xyList
.
push
(
result
.
documents
[
0
].
address
.
y
);
console
.
log
(
xyList
);
callback
(
function
(){
//버스api
})
callback
(
function
(){
//지하철api
})
callback
(
function
(){
//버스+지하철
})
}
})
res
.
render
(
'category'
,
{
userLocation
:
req
.
body
.
userLocation
});
...
...
Please
register
or
login
to post a comment