Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // app/router.js
- Router.map(function () {
- let routes = [
- {route: "page_one", templateName: "default.hbs"},
- {route: "page_two", templateName: "default.hbs"},
- {route: "page_three", templateName: "custom.hbs"}
- ];
- routes.forEach(function (key) {
- this.route(key.route);
- }, this);
- });
Add Comment
Please, Sign In to add comment