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

11 lines
229 B
JavaScript

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