Hi,
I am trying to create a custom route and keep getting this error -
Routing Error
## No route matches [GET] "/test"
This is on a local development setup
I have added the follow to jsapp/app/routes/app-route-map.js
this.route("test");
And created the following file app/assets/javascripts/discourse/app/routes/test.js
import DiscourseRoute from "discourse/routes/discourse";
import { ajax } from 'discourse/lib/ajax';
export default Ember.Route.extend({
model() {
return ajax('/test/1.json');
},
});
I have tried killing my tmp directory and restarting the services to be on the safe side.
Thanks for the help.