홍용민

body를 module.exports로 변경

......@@ -64,7 +64,6 @@ for(var i=0; i<routeID.length; i++){
const GateBusUrl = bus_url + '?servicekey=' + process.env.key + '&stationId=' + gateStationID; //국제캠 정문 정류장
let date = new Date();
let predictTime = ['-1', '-1', '-1', '-1'];
let body = new Object();
function predict(){
console.log(GateBusUrl);
......@@ -110,11 +109,11 @@ function predict(){
// var ETD_max_H = predictTime[2];
// var ETD_max_M = predictTime[3];
body.remainTime = gapHour + "시간" + gapMin + "분 이상";
body.ETD_min_H = predictTime[0];
body.ETD_min_M = predictTime[1];
body.ETD_max_H = predictTime[2];
body.ETD_max_M = predictTime[3];
module.exports.remainTime = gapHour + "시간" + gapMin + "분 이상";
module.exports.ETD_min_H = predictTime[0];
module.exports.ETD_min_M = predictTime[1];
module.exports.ETD_max_H = predictTime[2];
module.exports.ETD_max_M = predictTime[3];
}
})
})
......