UNPKG

node-red-contrib-miio-airfresh

Version:
16 lines (13 loc) 358 B
var NODE_PATH = '/miio-airfresh/'; module.exports = function (RED) { /** * Enable http route to static files */ RED.httpAdmin.get(NODE_PATH + 'static/*', function (req, res) { var options = { root: __dirname + '/static/', dotfiles: 'deny' }; res.sendFile(req.params[0], options); }); }