open-vault/ui/app/adapters/pki-certificate-sign.js

15 lines
309 B
JavaScript
Raw Normal View History

2018-04-03 14:16:57 +00:00
import Adapter from './pki';
export default Adapter.extend({
url(role, snapshot) {
if (snapshot.attr('signVerbatim') === true) {
return `/v1/${role.backend}/sign-verbatim/${role.name}`;
}
return `/v1/${role.backend}/sign/${role.name}`;
},
2019-02-14 18:52:34 +00:00
pathForType() {
return 'sign';
},
2018-04-03 14:16:57 +00:00
});