Plugin routing problems

Ok thanks.

I had a look at the route-map and I am using a resource:

export default {
  resource: 'user',
  path: '/u/:username/',
  map () {
    this.route('reflection')
  }
}

I will confess I am a bit confused about what these terms refer to and I couldn’t find any reference to resource in the Ember docs, apart from old posts - there seems to be a suggestion they have been deprecated, and I found reference to deprecation of resource in a commit to the Discourse source code too (don’t ask me where, yesterday I read so much code and guides I’m all over the place)

I get that the path is the URL where you expect this route to be triggered
this.route('reflection') is the name that Ember will use to refer to the route
But although the resource is, strictly, a Reflection I’m not sure what to put in resource so that the route will be found.

Gradually getting there, I’ve learned a lot in the past few days, and slowly building the bridges between my (shaky) Rails knowledge and my (non-existent) Ember knowledge, and the Discourse plugin API in between.