diff --git a/routes/legacy.js b/routes/legacy.js index fc6857b9..1de4986d 100644 --- a/routes/legacy.js +++ b/routes/legacy.js @@ -4,8 +4,8 @@ function addRoutes(app, peliasConfig) { var sendToLegacy; if (!peliasConfig.hasOwnProperty('legacyUrl')) { - sendToLegacy = function doNothing(req, res, next) { - next(new Error('Invalid path, no legacy proxy specified')); + sendToLegacy = function redirectToV1(req, res, next) { + res.redirect(301, '/v1'); }; } else {