Skip to content

Instantly share code, notes, and snippets.

@rockymontana
Created September 10, 2015 13:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rockymontana/4ad26f0107c909114b3f to your computer and use it in GitHub Desktop.
Save rockymontana/4ad26f0107c909114b3f to your computer and use it in GitHub Desktop.
Routes.find().fetch().map((dRoute) => {
that = this;
dRoute.forEach(function (dRoute) {
that.route(dRoute.path, {
name: dRoute.name,
path: '/' + dRoute.path,
layout: //[dRoute.template]
});
});
});
Routes.find().fetch().map((dRoute) => {
that = this;
dRoute.forEach(function (dRoute) {
that.route(dRoute.path, {
name: dRoute.name,
path: '/' + dRoute.path,
layout: //[dRoute.template]
});
});
});
Schemas = {};
Schemas.Routes = new SimpleSchema({
path: {
type: String,
optional: false,
},
name: {
type: String,
optional: false,
},
template: {
type: String,
optional: true
}
});
Routes = new Meteor.Collection('Routes');
Routes.attachSchema(Schemas.Routes);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment