Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김동훈
/
OpenSource_Project
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Donghoon Kim
2018-12-14 04:25:42 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3dcaf536f6dae36f097bbbe75d0b6291b4296d54
3dcaf536
1 parent
85195391
Bug fix #1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
api/getPlaceList.js
app.js
api/getPlaceList.js
View file @
3dcaf53
...
...
@@ -43,13 +43,16 @@ function initMap() {
// put data to db
for
(
var
i
=
0
;
i
<
results_food
.
length
;
i
++
)
{
putDataToDB
(
results_food
[
i
],
'food'
)
//putDataToDB(results_food[i], 'food')
console
.
log
(
results_food
[
i
])
}
for
(
var
i
=
0
;
i
<
results_entertainment
.
length
;
i
++
)
{
putDataToDB
(
results_entertainment
[
i
],
'entertainment'
)
//putDataToDB(results_entertainment[i], 'entertainment')
console
.
log
(
results_entertainment
[
i
])
}
for
(
var
i
=
0
;
i
<
results_room
.
length
;
i
++
)
{
putDataToDB
(
results_room
[
i
],
'room'
)
//putDataToDB(results_room[i], 'room')
console
.
log
(
results_room
[
i
])
}
});
}
...
...
app.js
View file @
3dcaf53
var
express
=
require
(
'express'
);
var
router
=
require
(
'./routes'
);
var
router
=
require
(
'./routes
/index
'
);
var
app
=
express
();
app
.
use
(
'/'
,
router
);
...
...
Please
register
or
login
to post a comment