Created
September 1, 2015 09:10
-
-
Save rockymontana/efcfbc4e5e33fd7ff976 to your computer and use it in GitHub Desktop.
This file contains 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
Router.map(function() { | |
DRoutes = Routes.find().fetch(); | |
that = this; | |
DRoutes.forEach(function(dRoute) { | |
that.route('/' + dRoute.slug, { | |
name: dRoute.name, | |
controller: 'PageController', | |
where: 'client', | |
path: '/' + dRoute.slug, | |
layout: dRoute.layout | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment