MCPcopy
hub / github.com/1Panel-dev/KubePi / createEndPoint

Function createEndPoint

web/dashboard/src/api/endpoints.js:32–34  ·  view source on GitHub ↗
(cluster_name, namespace, data)

Source from the content-addressed store, hash-verified

30}
31
32export function createEndPoint(cluster_name, namespace, data) {
33 return post(`${namespaceEndpointUrl(cluster_name, namespace)}`, data)
34}
35
36export function getEndPoint (cluster_name, namespace, name) {
37 return get(`${namespaceEndpointUrl(cluster_name, namespace)}/${name}`)

Callers

nothing calls this directly

Calls 2

postFunction · 0.90
namespaceEndpointUrlFunction · 0.85

Tested by

no test coverage detected