When you request the route, try putting .json at the end.
When you request a page on discourse, by default it returns the Ember app. If you want to use it programmatically, you need to put .json at the end.
When you request the route, try putting .json at the end.
When you request a page on discourse, by default it returns the Ember app. If you want to use it programmatically, you need to put .json at the end.