Skip to content

Instantly share code, notes, and snippets.

@robdodson
Created October 17, 2012 21:34
Show Gist options
  • Select an option

  • Save robdodson/3908389 to your computer and use it in GitHub Desktop.

Select an option

Save robdodson/3908389 to your computer and use it in GitHub Desktop.
middleware
app.configure(function(){
app.use(express.static(__dirname + '/public'));
app.use(express.logger());
app.set('views', __dirname + '/views');
app.set('view engine', 'ejs');
// app.use(express.basicAuth( function( user, pass ) {
// return 'COE' == user && 'b0gu5' == pass;
// }));
app.use(express.bodyParser());
app.use(express.methodOverride());
app.use(app.router);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment