diff --git a/lib/apis.js b/lib/apis.js index df6b943..d73f6e5 100644 --- a/lib/apis.js +++ b/lib/apis.js @@ -32,8 +32,8 @@ exports.routes = { 'iATANumber=', 'romanStateProvince=', 'japanStateProvince=', - 'localeCode=zh_CN', // hardcode here. - 'country={{country}}', // TODO: default by `CN` + 'localeCode={{lang|default("zh_CN")}}', // default lang by `zh_CN` + 'country={{country|default("CN")}}', // default by `CN` 'stateProvince={{province}}', 'chinaStateProvince={{province}}', // only support provinces' IDs in China for now. 'city={{city}}', diff --git a/package.json b/package.json index bcd3f59..291afd4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "starwood", - "version": "0.1.0", + "version": "0.1.1", "description": "starwood hotels price fetcher", "main": "index.js", "scripts": {