Add redirect from /raster/:id/ to /styles/:id/

This commit is contained in:
Petr Sloup 2016-03-17 11:04:51 +01:00
parent 62a6917778
commit c132d7fba8

View file

@ -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/',