Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var express = require('express');
- var app = express.createServer();
- app.configure(function(){
- app.use(express.router);
- app.use(express.static(__dirname + '/../public'));
- });
- app.listen(8080);
- app.get('/images/*', function(req, res, next){
- console.log('will authenticate user!');
- next();
- });
Advertisement
Add Comment
Please, Sign In to add comment