open-consul/ui-v2/app/routes/notfound.js
John Cowen c0abe1e406
ui: Outlet Loading (#8779)
Moves all Route/model hook loading to use Outlet components which listen on route change.
2020-10-01 09:33:22 +01:00

11 lines
221 B
JavaScript

import Route from 'consul-ui/routing/route';
import Error from '@ember/error';
export default Route.extend({
beforeModel: function() {
const e = new Error('Page not found');
e.code = 404;
throw e;
},
});