open-consul/ui-v2/app/routes/notfound.js

11 lines
218 B
JavaScript

import Route from '@ember/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;
},
});