import EmberRouter from '@ember/routing/router';
const Router = EmberRouter.extend({
});
Router.map(function() {
this.route('index', {path: '/templates'});
this.route('show', {path: '/templates/:id'});
});
export default Router;
I want to go to /templates, whenever any invalid path is given like /wrongquery.
Aucun commentaire:
Enregistrer un commentaire