Admin routes in a plugin


(James Kiesel) #1

Hey Discourse!

Would anyone be willing to point me towards a plugin which adds additional functionality to the admin dashboard? I’m currently trying to add an additional menu, like so:

But in order to have those routes show up, I’ve needed to append to the map() method in admin-route-map.js.es6. Maybe I’m missing some es6-fu or something here, but I’d love to be able to keep that code separated in the plugin, rather than having to overwrite the entire admin-route-map file, which would – with almost 100% certainty – break horribly at some point down the road.