Add redirect from /raster/:id/ to /styles/:id/
This commit is contained in:
@@ -218,6 +218,9 @@ module.exports = function(opts, callback) {
|
|||||||
return style;
|
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() {
|
var server = app.listen(process.env.PORT || opts.port, function() {
|
||||||
console.log('Listening at http://%s:%d/',
|
console.log('Listening at http://%s:%d/',
|
||||||
|
|||||||
Reference in New Issue
Block a user