Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Enable wwwhisper authorization

commit 46aefa3f5770fc91226162aa496bb088d7eccdb5 1 parent 6260a08
@wrr authored
Showing with 3 additions and 0 deletions.
  1. +1 −0  package.json
  2. +2 −0  web.js
View
1  package.json
@@ -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!');
Please sign in to comment.
Something went wrong with that request. Please try again.