Showing
1 changed file
with
1 additions
and
3 deletions
... | @@ -27,9 +27,7 @@ app.post('/',function(req,res,next){ | ... | @@ -27,9 +27,7 @@ app.post('/',function(req,res,next){ |
27 | 27 | ||
28 | //data부분만 추출 | 28 | //data부분만 추출 |
29 | var obj = JSON.parse(body).data; | 29 | var obj = JSON.parse(body).data; |
30 | - | ||
31 | // console.log(obj); | 30 | // console.log(obj); |
32 | - | ||
33 | //검색한 지역 포함한 모든 data 담기 | 31 | //검색한 지역 포함한 모든 data 담기 |
34 | let searchList = obj.filter(searchList => { | 32 | let searchList = obj.filter(searchList => { |
35 | return searchList.orgZipaddr.includes(searchWord); | 33 | return searchList.orgZipaddr.includes(searchWord); |
... | @@ -37,7 +35,7 @@ app.post('/',function(req,res,next){ | ... | @@ -37,7 +35,7 @@ app.post('/',function(req,res,next){ |
37 | 35 | ||
38 | // console.log(searchList); | 36 | // console.log(searchList); |
39 | //result라는 변수에 담아 결과 보내기 | 37 | //result라는 변수에 담아 결과 보내기 |
40 | - res.render('main', {result:searchList, map:map }); | 38 | + res.render('main', {result:searchList}); |
41 | }) | 39 | }) |
42 | 40 | ||
43 | }) | 41 | }) | ... | ... |
-
Please register or login to post a comment