2021-12-28 15:31:49 +00:00
|
|
|
/* eslint-disable ember/no-controller-access-in-routes */
|
2017-12-15 21:39:18 +00:00
|
|
|
import Route from '@ember/routing/route';
|
|
|
|
import EmberError from '@ember/error';
|
2017-09-29 00:18:28 +00:00
|
|
|
|
2020-06-10 13:49:16 +00:00
|
|
|
export default class NotFoundRoute extends Route {
|
2017-09-29 00:18:28 +00:00
|
|
|
model() {
|
|
|
|
const err = new EmberError('Page not found');
|
|
|
|
err.code = '404';
|
|
|
|
this.controllerFor('application').set('error', err);
|
2020-06-10 13:49:16 +00:00
|
|
|
}
|
|
|
|
}
|