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

Function apiUrl

web/dashboard/src/api/apis.js:3–5  ·  view source on GitHub ↗
(cluster_name)

Source from the content-addressed store, hash-verified

1import {get, post, patch} from "@/plugins/request"
2
3const apiUrl = (cluster_name) => {
4 return `/api/v1/proxy/${cluster_name}/k8s/apis`
5}
6const apiServerUrl = (cluster_name) => {
7 return `${apiUrl(cluster_name)}/apiregistration.k8s.io/v1/apiservices`
8}

Callers 5

apiServerUrlFunction · 0.70
listApisFunction · 0.70
listResourceApiFunction · 0.70
listPodMetricsFunction · 0.70
listNodeMetricsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected