Permalink
Browse files

add basicAuth example

  • Loading branch information...
1 parent cefb010 commit 2c891340813fcdc0bf7e32f357bc765175d1bf5a @tj tj committed Oct 15, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 app.js
View
1 app.js
@@ -7,6 +7,7 @@ var express = require('express');
var app = express();
+app.use(express.basicAuth('tobi', 'ferret'));
app.use(express.logger('dev'));
app.use(express.static(__dirname + '/repos'));

0 comments on commit 2c89134

Please sign in to comment.