# Creating a route in a plugin

**URL:** <https://meta.discourse.org/t/creating-a-route-in-a-plugin/38407>\
**Category:** Support\
**Created:** [January 24, 2016, 8:52pm UTC](https://meta.discourse.org/t/creating-a-route-in-a-plugin/38407 "2016-01-24T20:52:56Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![arrancscott](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arrancscott/32/50191_2.png) [@arrancscott](https://meta.discourse.org/u/arrancscott)\
**Post date:** [January 25, 2016, 8:46pm UTC](https://meta.discourse.org/t/creating-a-route-in-a-plugin/38407/2 "2016-01-25T20:46:17Z")

</div>

Fixed, after a few hours of head scratching.

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

```

Posted this incase another user stumbles across this post looking for an answer (which is exactly what I did).

---

_[View the full topic](https://meta.discourse.org/t/creating-a-route-in-a-plugin/38407)._
