diff --git a/README.md b/README.md index 04071c8..749a636 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,12 @@ var app = express(); var throwjs = require('throw.js'); var logger = require('winston'); +app.get('/', function (req, res, next) { + + next(new throwjs.notFound()); + +}); + app.use(function(err, req, res, next) { logger.error(err); @@ -29,12 +35,6 @@ app.use(function(err, req, res, next) { }); -app.get('/', function (req, res, next) { - - next(new throwjs.notFound()); - -}); - var server = app.listen(3000, function () { var host = server.address().address;