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
안지영
2020-12-01 22:11:19 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ad66cdf2973a2d21cfa2b0f6a672f59fa8a88160
ad66cdf2
1 parent
adbdcfbe
UPDATE category file
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
routes/category.js
routes/category.js
View file @
ad66cdf
...
...
@@ -9,6 +9,9 @@ let SIGUNDONG_CODE;
// 사용자가 index 페이지에서 주소를 입력하고 넘어오면
router
.
post
(
'/'
,
function
(
req
,
res
)
{
function
callback
(
cb
){
cb
();
}
console
.
log
(
req
.
body
);
let
userLocation
=
req
.
body
.
userLocation
;
// let userSi = req.body.si
...
...
@@ -35,6 +38,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