open-vault/ui/app/adapters/pki-certificate-sign.js
2019-02-14 13:52:34 -05:00

15 lines
309 B
JavaScript

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}`;
},
pathForType() {
return 'sign';
},
});