mirror of https://github.com/portainer/portainer
24 lines
658 B
JavaScript
24 lines
658 B
JavaScript
|
angular.module('portainer.extensions.registrymanagement')
|
||
|
.factory('RegistryCatalog', ['$resource', 'API_ENDPOINT_REGISTRIES', function RegistryCatalogFactory($resource, API_ENDPOINT_REGISTRIES) {
|
||
|
'use strict';
|
||
|
return $resource(API_ENDPOINT_REGISTRIES + '/:id/v2/:action', {},
|
||
|
{
|
||
|
get: {
|
||
|
method: 'GET',
|
||
|
params: { id: '@id', action: '_catalog' }
|
||
|
},
|
||
|
ping: {
|
||
|
method: 'GET',
|
||
|
params: { id: '@id' }, timeout: 3500
|
||
|
},
|
||
|
pingWithForceNew: {
|
||
|
method: 'GET',
|
||
|
params: { id: '@id' }, timeout: 3500,
|
||
|
headers: { 'X-RegistryManagement-ForceNew': '1' }
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
stripTrailingSlashes: false
|
||
|
});
|
||
|
}]);
|