Add redirect from /raster/:id/ to /styles/:id/
This commit is contained in:
parent
62a6917778
commit
c132d7fba8
1 changed files with 3 additions and 0 deletions
|
@ -218,6 +218,9 @@ module.exports = function(opts, callback) {
|
|||
return style;
|
||||
});
|
||||
|
||||
app.use('/raster/:id/', function(req, res, next) {
|
||||
return res.redirect(301, '/styles/' + req.params.id + '/');
|
||||
});
|
||||
|
||||
var server = app.listen(process.env.PORT || opts.port, function() {
|
||||
console.log('Listening at http://%s:%d/',
|
||||
|
|
Loading…
Reference in a new issue