index: add not found
This commit is contained in:
parent
491a5cb846
commit
9d78188f64
@ -190,6 +190,15 @@ InsightAPI.prototype.setupRoutes = function(app) {
|
|||||||
});
|
});
|
||||||
app.get('/currency', currency.index.bind(currency));
|
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() {
|
InsightAPI.prototype.getPublishEvents = function() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user