You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/app/kubernetes/rest/portainer-namespace.js

13 lines
383 B

angular.module('portainer.kubernetes').factory('KubernetesPortainerNamespaces', KubernetesPortainerNamespacesFactory);
function KubernetesPortainerNamespacesFactory($resource) {
const url = '/api/kubernetes/:endpointId/namespaces/:namespaceName/:action';
return $resource(
url,
{},
{
toggleSystem: { method: 'PUT', params: { action: 'system' } },
}
);
}