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();
|
|
});
|
|
}
|
|
};
|