Add comment to indicate deprecated paths

This commit is contained in:
Daniel García Aubert 2018-04-06 11:13:34 +02:00
parent 4e754e0d86
commit 61fc15cec0
3 changed files with 7 additions and 2 deletions

View File

@ -209,8 +209,8 @@ module.exports = class ApiRouter {
const paths = [
'/api/v1',
'/user/:user/api/v1',
'/tiles',
'/database/:dbname'
'/tiles', // Deprecated
'/database/:dbname' // Deprecated: used in ported test from windshaft
];
app.use(`(?:${paths.join('|')})`, apiRouter);

View File

@ -49,12 +49,14 @@ module.exports = {
port: global.environment.port,
host: global.environment.host
},
// FIXME: Remove it. This is no longer needed, paths are defined in routers
// This is for inline maps and table maps
base_url: global.environment.base_url_legacy || '/tiles/:table',
/// @deprecated with Windshaft-0.17.0
///base_url_notable: '/tiles',
// FIXME: Remove it. This is no longer needed, paths are defined in routers
// This is for Detached maps
//
// "maps" is the official, while
@ -62,6 +64,7 @@ module.exports = {
//
base_url_mapconfig: global.environment.base_url_detached || '(?:/maps|/tiles/layergroup)',
// FIXME: Remove it. This is no longer needed, paths are defined in routers
base_url_templated: global.environment.base_url_templated || '(?:/maps/named|/tiles/template)',
grainstore: {

View File

@ -7,7 +7,9 @@ var overviewsQueryRewriter = new OverviewsQueryRewriter({
});
module.exports = _.extend({}, serverOptions, {
// FIXME: Remove it. This is no longer needed, paths are defined in routers
base_url: '/database/:dbname/table/:table',
// FIXME: Remove it. This is no longer needed, paths are defined in routers
base_url_mapconfig: '/database/:dbname/layergroup',
grainstore: {
datasource: {