Skip to content

Commit

Permalink
Added missing information about get to documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscogouveia committed Feb 17, 2016
1 parent e6dd8e9 commit 207909e
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,23 @@ Changes to `dataRetrieverRouter` will influence `dataRetrieverRouter1` and `data

Changes to any of `dataRetrieverRouter1` or `dataRetrieverRouter2` will not cause influence on any data retriever routers, but themselves.

Contexts are preserver per data retriever router.
Contexts are preserved per data retriever router.

You can also get data from data retriever router

```
dataRetrieverRouter.get('credentials:username', (err, result) => {
...
});
```

And you can override the context on get, by passing it in the second argument

```
dataRetrieverRouter.get('credentials:username', { username: 'the_overrider', group: ['anonymous'] }, (err, result) => {
...
});
```

## Learn more about _Rule Based Access Control_

Expand Down

0 comments on commit 207909e

Please sign in to comment.