ccdb-web/app/routes/logout.js

10 lines
221 B
JavaScript

import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';
export default Route.extend({
session: service('session'),
beforeModel() {
this.get('session').invalidate();
}
});