Skip to content

Instantly share code, notes, and snippets.

@randallb
Created July 27, 2011 05:14
Show Gist options
  • Save randallb/1108725 to your computer and use it in GitHub Desktop.
Save randallb/1108725 to your computer and use it in GitHub Desktop.
Bug.js app
// Main bug.js app
express = require("express");
app = express.createServer();
bugmodel = require("./bugmodel");
anotherContext = function(req, res, next){
bugmodel.test();
};
app.get("/", bugmodel.test, anotherContext, function(res, req, next){
bugmodel.test();
});
app.listen(8080);
console.log("check this bug out...")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment