mirror of https://github.com/portainer/portainer
18 lines
407 B
JavaScript
18 lines
407 B
JavaScript
angular.module('portainer.services')
|
|
.factory('HttpRequestHelper', [function HttpRequestHelper() {
|
|
'use strict';
|
|
|
|
var service = {};
|
|
var headers = {};
|
|
|
|
service.registryAuthenticationHeader = function() {
|
|
return headers.registryAuthentication;
|
|
};
|
|
|
|
service.setRegistryAuthenticationHeader = function(headerValue) {
|
|
headers.registryAuthentication = headerValue;
|
|
};
|
|
|
|
return service;
|
|
}]);
|