Created
January 6, 2014 14:42
-
-
Save digilord/8283707 to your computer and use it in GitHub Desktop.
Sample CoffeeScript controller for Iron Router
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class @AuthorizedController extends RouteController | |
before: -> | |
console.log 'AuthorizedController :before action' | |
if not Meteor.user()? | |
@redirect 'salesLanding' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment