Plugin with catch-all wildcard route map

(via Override existing catch-all wildcard route - #2 by ef4 - Routing - Ember.JS)

The following allows a plugin to have a sort of catch-all style route:

plugins/plugin/assets/javascripts/discourse/plugin-name-route-map.js.es6:

export default function () {
  this.route('main-route.single-segment', { path: '/:path' });
  this.route('main-route.multi-segment', { path: '/:path/*wildcard' });
}

plugins/plugin/assets/javascripts/discourse/routes/main-route-single-segment.js.es6:

export { default } from './main-route';

plugins/plugin/assets/javascripts/discourse/routes/main-route-multi-segment.js.es6:

export { default } from './main-route';

The main route is the one with an actual implementation. Also note that you need to export any controllers/templates in the same fashion if you want to duplicate their behavior.