@vIvEk_rAj wrote:
I have the following routes,
this.route(‘posts’, function() { this.route('new', { path: '/new' }); this.route('edit', { path: '/:post_id/edit' }); }); this.route(‘forums’, function() { this.route('new', { path: '/new' }); this.route('edit', { path: '/:forum_id/edit' }); }); this.route(‘notes’, function() { this.route('new', { path: '/new' }); this.route('edit', { path: '/:note_id/edit' }); });
I’m trying to move these routes into an in-repo-engine, say
social
.Currently, in the app, the URL of these routes are
/posts/new
and/posts/123/edit
. After moving them as an engine, the URL is changed to/social/posts/new
and/social/posts/123/edit
.Is there a way to mount my engine in
/
instead ofsocial
?P.S: I want multiple in-repo-engines like this. So I cannot use like this,
this.mount('social', { path: '/' }); this.mount('anotherengine', { path: '/' });
Posts: 1
Participants: 1