Personal blog written from scratch using Node.js, Bootstrap, and MySQL. https://jrtechs.net
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

19 lines
483 B

const utils = require('../utils/utils.js');
module.exports=
{
/**Sends the user an image from the specified fileName.
*
* @param result
* @param fileName
*/
main: function(result, fileName)
{
result.contentType = 'image/png';
utils.include("." + fileName).then(function(content)
{
result.write(content);
result.end();
});
}
};