From 2ccd22ecf68c1c6680d0d67fd0718616d199c515 Mon Sep 17 00:00:00 2001 From: Kostas Bariotis Date: Tue, 12 May 2015 23:10:37 +0300 Subject: [PATCH] Update README.md --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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;