Guest User

Untitled

a guest
Sep 24th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. import EmberRouter from '@ember/routing/router';
  2. import config from './config/environment';
  3.  
  4. const Router = EmberRouter.extend({
  5. location: 'none',
  6. rootURL: config.rootURL
  7. });
  8.  
  9. Router.map(function() {
  10. this.route('my-route-a', { path: 'new-a' }, function() {
  11. this.route('my-route-b', { path: 'b' }, function() {
  12. this.route('my-route-c', { path: 'c' });
  13. });
  14. });
  15. this.route('my-route-d', { path: 'old-a' }, function() {
  16. this.route('my-route-e', { path: '*path' });
  17. });
  18. });
  19.  
  20. export default Router;
Add Comment
Please, Sign In to add comment