From ee7a1413b9398b57d362e1e6abfd56e4e238e5dc Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 28 Jun 2013 15:56:44 -0400 Subject: [PATCH] added favicon --- public/favicon.ico | Bin 0 -> 1150 bytes src/webserver.js | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 public/favicon.ico diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..70b00c430113ac15f50aec20d6d2d7bb892bd160 GIT binary patch literal 1150 zcmZQzU<5(|0R|wcz>vYhz#zuJz@P!dKp~(AL>x#lFaYJy!Tw_`QoH;|Z{)UEz|Ns8|gJ}iRpm2bN404&tx=wyp78VljL%oASFg_e{rfjFOdTN_=y$GZ)220dcX#)F o`0zoHkb3gv85sW6Gcf$IXJGii&%khi89xT80jUM)0R|xh0FW@8)c^nh literal 0 HcmV?d00001 diff --git a/src/webserver.js b/src/webserver.js index 68a4f51601..ea4a96f322 100644 --- a/src/webserver.js +++ b/src/webserver.js @@ -32,7 +32,7 @@ var express = require('express'), }; // Middlewares - app.use(express.favicon()); // 2 args: string path and object options (i.e. expire time etc) + app.use(express.favicon(path.join(__dirname, '../', 'public', 'favicon.ico'))); app.use(require('less-middleware')({ src: path.join(__dirname, '../', 'public') })); app.use(express.static(path.join(__dirname, '../', 'public'))); app.use(express.bodyParser()); // Puts POST vars in request.body