Deprecates old config URLs: /tiles/template and /tiles/layergroup

Moves all tests to run on new URLs
Deprecated base_url_legacy in config, it will keep working tho
This commit is contained in:
Raul Ochoa
2015-03-23 15:54:45 +01:00
parent 23f5be6c33
commit d9ab1e8810
8 changed files with 94 additions and 100 deletions
+2 -4
View File
@@ -14,13 +14,11 @@ var config = {
// Base url for the Templated Maps API
// "/api/v1/map/named" is the new API,
// "/tiles/template" is for compatibility with versions up to 1.6.x
,base_url_templated: '(?:/api/v1/map/named|/tiles/template|/u/:user/api/v1/map/named|/u/:user/tiles/template)'
,base_url_templated: '(?:/api/v1/map/named|/u/:user/api/v1/map/named)'
// Base url for the Detached Maps API
// "maps" is the the new API,
// "tiles/layergroup" is for compatibility with versions up to 1.6.x
,base_url_detached: '(?:/api/v1/map|/tiles/layergroup|/u/:user/api/v1/map|/u/:user/tiles/layergroup)'
// Base url for the Inline Maps and Table Maps API
,base_url_legacy: '/tiles/:table'
,base_url_detached: '(?:/api/v1/map|/u/:user/api/v1/map)'
// Maximum number of connections for one process
// 128 is a good value with a limit of 1024 open file descriptors