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