2020-05-07 22:05:20 +01:00

9 lines
265 B
JavaScript

const post = require('../lib/post')
module.exports = function(app){
app.get("/heating", async function (req, res, next) {
const response = await post.postRequest()
const heating = response.updateData.zones[0]
res.json(heating)
});
}