MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / deleteNewApiService

Function deleteNewApiService

static/js/settings.js:1881–1891  ·  view source on GitHub ↗
(id, name)

Source from the content-addressed store, hash-verified

1879}
1880
1881async function deleteNewApiService(id, name) {
1882 const confirmed = await confirm(`确定要删除 new-api 服务「${name}」吗?`);
1883 if (!confirmed) return;
1884 try {
1885 await api.delete(`/new-api-services/${id}`);
1886 toast.success('已删除');
1887 loadNewApiServices();
1888 } catch (e) {
1889 toast.error('删除失败: ' + e.message);
1890 }
1891}
1892
1893async function testNewApiServiceById(id) {
1894 try {

Callers

nothing calls this directly

Calls 5

confirmFunction · 0.85
loadNewApiServicesFunction · 0.85
successMethod · 0.80
errorMethod · 0.80
deleteMethod · 0.45

Tested by

no test coverage detected