11 lines
266 B
JavaScript
11 lines
266 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}`;
|
|
},
|
|
});
|