diff --git a/lib/index.js b/lib/index.js index 468f7ea..a5d82a1 100644 --- a/lib/index.js +++ b/lib/index.js @@ -190,6 +190,15 @@ InsightAPI.prototype.setupRoutes = function(app) { }); app.get('/currency', currency.index.bind(currency)); + // Not Found + app.use(function(req, res) { + res.status(404).jsonp({ + status: 404, + url: req.originalUrl, + error: 'Not found' + }); + }); + }; InsightAPI.prototype.getPublishEvents = function() {