Skip to content

Commit

Permalink
Add default value to param country and lang
Browse files Browse the repository at this point in the history
  • Loading branch information
guo-yu committed Dec 24, 2014
1 parent 86f5171 commit c538002
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/apis.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}}',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "starwood",
"version": "0.1.0",
"version": "0.1.1",
"description": "starwood hotels price fetcher",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit c538002

Please sign in to comment.