Files
backroad/app/portainer/services/api/sslService.js
2021-08-10 07:59:47 +03:00

20 lines
360 B
JavaScript

import angular from 'angular';
angular.module('portainer.app').service('SSLService', SSLServiceFactory);
/* @ngInject */
function SSLServiceFactory(SSL) {
return {
upload,
get,
};
function get() {
return SSL.get().$promise;
}
function upload(httpEnabled, cert, key) {
return SSL.upload({ httpEnabled, cert, key }).$promise;
}
}