14 lines
361 B
TypeScript
14 lines
361 B
TypeScript
import axios from "axios";
|
|
|
|
export function deletePod(namespace: string, name: string, onSuccess: () => void)
|
|
{
|
|
axios.delete(StringUtils.format('%s/pods/%s/%s', ApiConfig.getHttpBase(), namespace, name), {
|
|
headers: {
|
|
Authorization: "Bearer " + requireToken()
|
|
}
|
|
})
|
|
.then(() => {
|
|
onSuccess();
|
|
})
|
|
.catch();
|
|
} |