김주희

대기오염 api 설정 수정

......@@ -28,6 +28,7 @@ router.get('/name/:name/birth/:birth', (req, res) => {
var lhurtArr = new Array(); //경상자수
var occurArr = new Array(); //총 발생수
////////////////////////////////////////
var airArr = new Array(); //대기오염 지수
// 이전 10분간 데이터 찾기
......@@ -52,6 +53,8 @@ router.get('/name/:name/birth/:birth', (req, res) => {
mhurtArr.unshift(rows[i].mhurt);
lhurtArr.unshift(rows[i].lhurt);
occurArr.unshift(rows[i].occurence);
////
airArr.unshift(rows[i].pollution);
count = count + 1;
if (count == 10) {
......@@ -74,7 +77,8 @@ router.get('/name/:name/birth/:birth', (req, res) => {
tdeathArr,
mhurtArr,
lhurtArr,
occurArr
occurArr,
airArr
});
}
});
......