Blame view

client/routes/routes-authenticated.js 454 Bytes
3b214be5e   Ryan Glover   Convert all Coffe...
1
2
3
4
5
6
7
8
  /*
  * Routes: Authenticated
  * Routes that are only visible to authenticated users.
  */
  
  Router.route('index', {
    path: '/',
    template: 'index',
0436f3083   Ryan Glover   Add example publi...
9
10
11
12
13
14
15
16
17
    subscriptions: function(){
      return Meteor.subscribe('examplePublication');
      /* 
      return [
        Meteor.subscribe('examplePublication'),
        Meteor.subscribe('examplePublication2')
      ];
      */
    },
3b214be5e   Ryan Glover   Convert all Coffe...
18
19
20
21
22
    onBeforeAction: function(){
      // Code to run before route goes here.
      this.next();
    }
  });