@Bauke, Nope, users/me
is just an end-point, as ESA docs suggested to manage a current user instance. So I have no nested routes and don’t think to need it:
Router.map(function() {
this.route('auth-error');
this.route('callback');
this.route('dashboard');
this.route('information');
this.route('address');
this.route('phone-fax');
this.route('social');
this.route('links');
this.route('description');
this.route('working-hours');
this.route('holiday-hours');
this.route('country-languages');
});
I belived that I had to use smth like async
and await
tips when calling the above end-point.
Another idea was to remove routeAfterAuthentication: 'dashboard'
declared in environment.js
and use transitionToRoute('dashboard')
after getting the user data from the backend.