Skip to content

Commit

Permalink
Merge pull request #5 from MichaelJCole/master
Browse files Browse the repository at this point in the history
Add note about 'dataNotFound' plugin. It should be loaded after 'ensureSigned…
  • Loading branch information
splendido committed Sep 11, 2015
2 parents 47bf7b0 + 9310562 commit 661ebdc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,12 @@ It behaves nicely letting the required route path inside the address bar and bri
To protect **all** you routes use it like this:

```javascript
// Protect all Routes
Router.plugin('ensureSignedIn');

// If you are using other plugins, pay attention to their load order.
// Use *after* so you don't get 404's on your protected routes.
Router.onBeforeAction('dataNotFound');
```

While in case you want to protect *almost all* your routes you might want to set up the plugin this way:
Expand Down

0 comments on commit 661ebdc

Please sign in to comment.