open-vault/ui/app/routes/vault/cluster/access/identity.js
2018-04-03 09:16:57 -05:00

16 lines
259 B
JavaScript

import Ember from 'ember';
const MODEL_FROM_PARAM = {
entities: 'entity',
groups: 'group',
};
export default Ember.Route.extend({
model(params) {
let model = MODEL_FROM_PARAM[params.item_type];
//TODO 404 behavior;
return model;
},
});