index: add not found

This commit is contained in:
Braydon Fuller 2016-04-07 08:35:37 -04:00
parent 491a5cb846
commit 9d78188f64

View File

@ -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() {