open-vault/ui/app/models/auth-config.js

10 lines
275 B
JavaScript
Raw Normal View History

2018-04-03 14:16:57 +00:00
import DS from 'ember-data';
const { belongsTo } = DS;
export default DS.Model.extend({
2019-02-14 18:52:34 +00:00
backend: belongsTo('auth-method', { inverse: 'authConfigs', readOnly: true, async: false }),
getHelpUrl: function(backend) {
return `/v1/auth/${backend}/config?help=1`;
},
2018-04-03 14:16:57 +00:00
});