Update environment example files

This commit is contained in:
Daniel García Aubert 2019-10-01 19:42:04 +02:00
parent 3220e3de31
commit 4aa844946d
4 changed files with 29 additions and 95 deletions

View File

@ -17,12 +17,12 @@ var config = {
//
// See https://github.com/CartoDB/Windshaft-cartodb/wiki/Unified-Map-API
,routes: {
v1: {
api: {
paths: [
'/api/v1',
'/user/:user/api/v1',
],
// Attach middlewares at the begining of the req/res cycle
// Optional: attach middlewares at the begining of the req/res cycle
// to perform custom operations.
middlewares: [
function noop () {
@ -37,34 +37,15 @@ var config = {
paths: [
'/map',
],
middlewares: []
middlewares: [] // Optional
},
// Base url for the Templated Maps API
// "/api/v1/map/named" is the new API,
template: {
paths: [
'/map/named'
]
}
},
// For compatibility with versions up to 1.6.x
v0: {
paths: [
'/tiles'
],
// Base url for the Detached Maps API
// "/tiles/layergroup" is for compatibility with versions up to 1.6.x
map: {
paths: [
'/layergroup'
]
},
// Base url for the Templated Maps API
// "/tiles/template" is for compatibility with versions up to 1.6.x
template: {
paths: [
'/template'
]
],
middlewares: [] // Optional
}
}
}

View File

@ -17,12 +17,12 @@ var config = {
//
// See https://github.com/CartoDB/Windshaft-cartodb/wiki/Unified-Map-API
,routes: {
v1: {
api: {
paths: [
'/api/v1',
'/user/:user/api/v1',
],
// Attach middlewares at the begining of the req/res cycle
// Optional: attach middlewares at the begining of the req/res cycle
// to perform custom operations.
middlewares: [
function noop () {
@ -37,34 +37,15 @@ var config = {
paths: [
'/map',
],
middlewares: []
middlewares: [] // Optional
},
// Base url for the Templated Maps API
// "/api/v1/map/named" is the new API,
template: {
paths: [
'/map/named'
]
}
},
// For compatibility with versions up to 1.6.x
v0: {
paths: [
'/tiles'
],
// Base url for the Detached Maps API
// "/tiles/layergroup" is for compatibility with versions up to 1.6.x
map: {
paths: [
'/layergroup'
]
},
// Base url for the Templated Maps API
// "/tiles/template" is for compatibility with versions up to 1.6.x
template: {
paths: [
'/template'
]
],
middlewares: [] // Optional
}
}
}

View File

@ -17,12 +17,12 @@ var config = {
//
// See https://github.com/CartoDB/Windshaft-cartodb/wiki/Unified-Map-API
,routes: {
v1: {
api: {
paths: [
'/api/v1',
'/user/:user/api/v1',
],
// Attach middlewares at the begining of the req/res cycle
// Optional: attach middlewares at the begining of the req/res cycle
// to perform custom operations.
middlewares: [
function noop () {
@ -37,34 +37,15 @@ var config = {
paths: [
'/map',
],
middlewares: []
middlewares: [] // Optional
},
// Base url for the Templated Maps API
// "/api/v1/map/named" is the new API,
template: {
paths: [
'/map/named'
]
}
},
// For compatibility with versions up to 1.6.x
v0: {
paths: [
'/tiles'
],
// Base url for the Detached Maps API
// "/tiles/layergroup" is for compatibility with versions up to 1.6.x
map: {
paths: [
'/layergroup'
]
},
// Base url for the Templated Maps API
// "/tiles/template" is for compatibility with versions up to 1.6.x
template: {
paths: [
'/template'
]
],
middlewares: [] // Optional
}
}
}

View File

@ -17,44 +17,35 @@ var config = {
//
// See https://github.com/CartoDB/Windshaft-cartodb/wiki/Unified-Map-API
,routes: {
v1: {
api: {
paths: [
'/api/v1',
'/user/:user/api/v1',
],
// Optional: attach middlewares at the begining of the req/res cycle
// to perform custom operations.
middlewares: [
function noop () {
return function noopMiddleware (req, res, next) {
next();
}
}
],
// Base url for the Detached Maps API
// "/api/v1/map" is the new API,
map: {
paths: [
'/map',
]
],
middlewares: [] // Optional
},
// Base url for the Templated Maps API
// "/api/v1/map/named" is the new API,
template: {
paths: [
'/map/named'
]
}
},
// For compatibility with versions up to 1.6.x
v0: {
paths: [
'/tiles'
],
// Base url for the Detached Maps API
// "/tiles/layergroup" is for compatibility with versions up to 1.6.x
map: {
paths: [
'/layergroup'
]
},
// Base url for the Templated Maps API
// "/tiles/template" is for compatibility with versions up to 1.6.x
template: {
paths: [
'/template'
]
],
middlewares: [] // Optional
}
}
}