Skip to content

Commit

Permalink
readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
PavelPolyakov committed May 18, 2015
1 parent 734640e commit 1da8ed6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ Or you can provide a directory location using the `loadPolicies` function, like

```
server.plugins.mrhorse.loadPolicies(server, {
policyDirectory: __dirname + '/policies',
preHandler: 'onPreHandler' /* optional */ ,
postHandler: 'onPostHandler' /* optional */
}, function(err) {
...
});
policyDirectory: __dirname + '/policies',
preHandler: 'onPreHandler' /* optional */ ,
postHandler: 'onPostHandler' /* optional */
}, function(err) {
...
});
```

Both strategies are fine, and can be complementary. If your hapi project uses plugins to separate up functionality it is perfectly acceptable for each plugin to have its own `policies` folder. Just use the `loadPolicies` function in each plugin. See the example folder for additional detail.
Expand Down

0 comments on commit 1da8ed6

Please sign in to comment.