Permalink
Browse files

basic authentication (very very basic)

  • Loading branch information...
Default Username root
Default Username authored and root committed Mar 30, 2012
1 parent 45dc19c commit a30147795272a453fffb5e886188e147c86ca65c
Showing with 3 additions and 0 deletions.
  1. +3 −0 app.js
View
3 app.js
@@ -20,6 +20,9 @@ var app = express.createServer();
var staticProvider = gzippo.staticGzip(__dirname + '/public'); // use GZIP compression for static files (cache ~1 day)!
app.use(staticProvider);
app.get('/',function(req,res,next){
+ res.send("unauthenticated");
+})
+app.get('/6fG8h72OeP1FcZ',function(req,res,next){
console.log(staticProvider);
req.url = "index.html";
staticProvider(req, res, next);

0 comments on commit a301477

Please sign in to comment.