From a9b4df1f2d33a13bbecd90ce3f7ae2c7124afea9 Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Wed, 19 Nov 2014 11:10:56 -0800 Subject: [PATCH] Expose more loopback middleware for require --- lib/express-middleware.js | 1 - package.json | 1 + server/middleware/favicon.js | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 server/middleware/favicon.js diff --git a/lib/express-middleware.js b/lib/express-middleware.js index 0c623076..f058a74a 100644 --- a/lib/express-middleware.js +++ b/lib/express-middleware.js @@ -1,4 +1,3 @@ -var express = require('express'); var path = require('path'); var middlewares = exports; diff --git a/package.json b/package.json index 5bce6742..edce3642 100644 --- a/package.json +++ b/package.json @@ -46,6 +46,7 @@ "nodemailer": "~1.3.0", "nodemailer-stub-transport": "~0.1.4", "path-to-regexp": "^1.0.1", + "serve-favicon": "^2.1.6", "strong-remoting": "^2.4.0", "uid2": "0.0.3", "underscore": "~1.7.0", diff --git a/server/middleware/favicon.js b/server/middleware/favicon.js new file mode 100644 index 00000000..84ff0e28 --- /dev/null +++ b/server/middleware/favicon.js @@ -0,0 +1 @@ +module.exports = require('../../lib/express-middleware').favicon;