move URL host to config
This commit is contained in:
parent
57414cff59
commit
5446bec15e
2 changed files with 6 additions and 5 deletions
|
|
@ -23,6 +23,8 @@
|
||||||
'vm-forum-velomobil-schnell'
|
'vm-forum-velomobil-schnell'
|
||||||
];
|
];
|
||||||
|
|
||||||
|
BR.conf.host = 'http://h2096617.stratoserver.net:443';
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
// desktop configuration
|
// desktop configuration
|
||||||
|
|
@ -39,6 +41,8 @@
|
||||||
'car-test'
|
'car-test'
|
||||||
];
|
];
|
||||||
|
|
||||||
|
BR.conf.host = 'http://localhost:17777';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,8 @@
|
||||||
|
|
||||||
BR.HOST = 'http://localhost:17777';
|
|
||||||
|
|
||||||
L.BRouter = L.Class.extend({
|
L.BRouter = L.Class.extend({
|
||||||
statics: {
|
statics: {
|
||||||
// /brouter?lonlats=1.1,1.2|2.1,2.2|3.1,3.2|4.1,4.2&nogos=-1.1,-1.2,1|-2.1,-2.2,2&profile=shortest&alternativeidx=1&format=kml
|
// /brouter?lonlats=1.1,1.2|2.1,2.2|3.1,3.2|4.1,4.2&nogos=-1.1,-1.2,1|-2.1,-2.2,2&profile=shortest&alternativeidx=1&format=kml
|
||||||
URL_TEMPLATE: BR.HOST + '/brouter?lonlats={lonlats}&nogos={nogos}&profile={profile}&alternativeidx={alternativeidx}&format={format}',
|
URL_TEMPLATE: BR.conf.host + '/brouter?lonlats={lonlats}&nogos={nogos}&profile={profile}&alternativeidx={alternativeidx}&format={format}',
|
||||||
URL_PROFILE_UPLOAD: BR.HOST + '/brouter/profile',
|
URL_PROFILE_UPLOAD: BR.conf.host + '/brouter/profile',
|
||||||
PRECISION: 6,
|
PRECISION: 6,
|
||||||
NUMBER_SEPARATOR: ',',
|
NUMBER_SEPARATOR: ',',
|
||||||
GROUP_SEPARATOR: '|'
|
GROUP_SEPARATOR: '|'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue