Permalink
Browse files

Enable wwwhisper authorization

1 parent 6260a08 commit 46aefa3f5770fc91226162aa496bb088d7eccdb5 @wrr committed Jan 4, 2014
Showing with 3 additions and 0 deletions.
  1. +1 −0 package.json
  2. +2 −0 web.js
View
@@ -11,6 +11,7 @@
"dependencies": {
"logfmt": "~0.18.1",
"express": "~3.4.7",
+ "connect-wwwhisper": "*"
},
"devDependencies": {},
"optionalDependencies": {},
View
2 web.js
@@ -1,8 +1,10 @@
var express = require('express');
var logfmt = require('logfmt');
+var wwwhisper = require('connect-wwwhisper');
var app = express();
app.use(logfmt.requestLogger());
+app.use(wwwhisper());
app.get('/', function(req, res) {
res.send('Hello World!');

0 comments on commit 46aefa3

Please sign in to comment.