Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
guo-yu committed Dec 24, 2014
1 parent b8b323b commit 86f5171
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ starwood.search({
Response JSON would like this:

```js
{ id: '3482',
{
id: '3482',
thumbnail: '/pub/media/3482/str3482po.134187_md.jpg',
name: '三亚亚龙湾瑞吉度假酒店',
country: '中国,',
Expand Down
4 changes: 4 additions & 0 deletions lib/apis.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ var debug = require('debug')('starwood');
var trim = require('trim');
var utils = require('./utils');

// Request host
exports.host = 'https://www.starwoodhotels.com/';

// Request rules, contains request.headers
// `all` means this kind of rule will be append to request's option
// in both `GET`, `POST` ,`PUT`, `DELETE` methods.
exports.rules = {
all: {
headers: {
Expand Down

0 comments on commit 86f5171

Please sign in to comment.