incRouter.route('/incidents/:Inc_num',)
.get((req, res) => {
MySQL.query("select INCIDENT_NUM, IMPACTED_APPS, INC_DATE, IMPACT_HOURS_TYPE, INCIDENT_TYPE, INC_DURATION, CORE_IMPACT_MINS, INC_MONTH from table WHERE INCIDENT_NUM = ?", [req.query.Inc_num],
(err, result, rows) => {
if (err) {
console.log(`Query Error ${err}`);
connection.end();
}
if (result.length > 0) {
console.log(result);
res.status(200).json(result);
}
});
});