How to extend router by mixin defined in an addon?

It should be noted that using self inside a nested route or resource will result in a flat route structure. In this case events, future, and add will all be individual routes. If you wish to maintain the expected behaviour of nested routing (e.g. events.future and events.add) you should use this inside the nested route:

export default function(self) {
  self.resource('events', function() {
1 Like