Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import EmberRouter from '@ember/routing/router';
- import config from './config/environment';
- const Router = EmberRouter.extend({
- location: 'none',
- rootURL: config.rootURL
- });
- Router.map(function() {
- this.route('my-route-a', { path: 'new-a' }, function() {
- this.route('my-route-b', { path: 'b' }, function() {
- this.route('my-route-c', { path: 'c' });
- });
- });
- this.route('my-route-d', { path: 'old-a' }, function() {
- this.route('my-route-e', { path: '*path' });
- });
- });
- export default Router;
Add Comment
Please, Sign In to add comment