# Как изменить класс маршрута Ember

**URL:** <https://meta.discourse.org/t/how-to-modify-ember-route-class/143684>\
**Category:** Development\
**Created:** [09.Март.2020 11:06:32 UTC](https://meta.discourse.org/t/how-to-modify-ember-route-class/143684 "2020-03-09T11:06:32Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![saurabhmasc](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@saurabhmasc](https://meta.discourse.org/u/saurabhmasc)\
**Post date:** [09.Март.2020 11:06:32 UTC](https://meta.discourse.org/t/how-to-modify-ember-route-class/143684/1 "2020-03-09T11:06:32Z")

</div>

Всем привет,  
Я хочу изменить класс маршрута Ember (/app/assets/javascripts/discourse/routes/tags-show.js.es6) так же, как мы изменяем классы контроллера и компонента с помощью pluginAPI.  
Пример изменения контроллера composer.js.es6 представлен ниже:

```
<script type="text/discourse-plugin" version="0.8">
  api.modifyClass('controller:composer', {
    actions: {
        newActionHere() { }
   }
});
</script>

```

Возможно ли изменить класс маршрута Ember таким же образом?

---

_[View the full topic](https://meta.discourse.org/t/how-to-modify-ember-route-class/143684)._
