Skip to content

Instantly share code, notes, and snippets.

@balanza
Created March 22, 2016 11:37
Show Gist options
  • Save balanza/323c7d59118b20f409c1 to your computer and use it in GitHub Desktop.
Save balanza/323c7d59118b20f409c1 to your computer and use it in GitHub Desktop.
//navigation.js - centralized app navigation methods
exports.openHomePage = function(){ /* code for opening the Home page */ };
@isLoggedIn
exports.openProfilePage = function(){ /* code for opening the Profile page */ };
@isLoggedIn
exports.openDashboardPage = function(){ /* code for opening Dashboard page */ };
@isLoggedIn
@hasRole('admin')
exports.openInsightsPage = function(){ /* code for opening Insights page */ };
@isLoggedIn
@hasVerifiedCreditCard
exports.openBillingPage = function(){ /* code for opening the Billing page */ };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment