lib/flyle.js
function sendImg ({ path, res }) {
  res.writeHead(STATUS_OK, {
    'Content-Type': 'image/png'
  })
  fs.createReadStream(path).pipe(res)
}
function sendImg ({ path, res }) {
  res.writeHead(STATUS_OK, {
    'Content-Type': 'image/png'
  })
  fs.createReadStream(path).pipe(res)
}
function sendImg ( { path , res } ) { res . writeHead ( STATUS_OK , { 'Content-Type' : 'image/png' } ) fs . createReadStream ( path ) . pipe ( res ) }
Respond with an image
Respond with an image