Guest User

Untitled

a guest
Oct 20th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. // app/router.js
  2. Router.map(function () {
  3.  
  4. let routes = [
  5. {route: "page_one", templateName: "default.hbs"},
  6. {route: "page_two", templateName: "default.hbs"},
  7. {route: "page_three", templateName: "custom.hbs"}
  8. ];
  9.  
  10. routes.forEach(function (key) {
  11. this.route(key.route);
  12. }, this);
  13. });
Add Comment
Please, Sign In to add comment