# Plugin routing problems

**URL:** <https://meta.discourse.org/t/plugin-routing-problems/120221>\
**Category:** Development\
**Created:** [June 13, 2019, 9:10am UTC](https://meta.discourse.org/t/plugin-routing-problems/120221 "2019-06-13T09:10:40Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![pacharanero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pacharanero/32/500583_2.png) [@pacharanero](https://meta.discourse.org/u/pacharanero)\
**Post date:** [June 13, 2019, 9:35pm UTC](https://meta.discourse.org/t/plugin-routing-problems/120221/7 "2019-06-13T21:35:44Z")

</div>

Ok thanks.

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

```js
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.

---

_[View the full topic](https://meta.discourse.org/t/plugin-routing-problems/120221)._
