Guest User

Untitled

a guest
May 12th, 2012
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. var express = require('express');
  2.  
  3. var app = express.createServer();
  4.  
  5. app.configure(function(){
  6. app.use(express.router);
  7. app.use(express.static(__dirname + '/../public'));
  8. });
  9.  
  10. app.listen(8080);
  11.  
  12. app.get('/images/*', function(req, res, next){
  13. console.log('will authenticate user!');
  14. next();
  15. });
Advertisement
Add Comment
Please, Sign In to add comment