I’ve recently done this in the Lattice plugin, where I was able to get this to go without specifying a resource field.
# lattice-route-map.js.es6
export default function() {
this.resource('lattice', { path: '/lattices/:id' })
}
Fun fact: Discourse does pattern matching on filenames to determine what to cook into the routes. Anything matching /route-map$/
will attempt to get baked into the router.