Add comment to indicate deprecated paths
This commit is contained in:
parent
4e754e0d86
commit
61fc15cec0
@ -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);
|
||||
|
@ -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: {
|
||||
|
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user