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

Function testSub2ApiServiceById

static/js/settings.js:1585–1596  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

1583}
1584
1585async function testSub2ApiServiceById(id) {
1586 try {
1587 const result = await api.post(`/sub2api-services/${id}/test`);
1588 if (result.success) {
1589 toast.success(result.message);
1590 } else {
1591 toast.error(result.message);
1592 }
1593 } catch (e) {
1594 toast.error('测试失败: ' + e.message);
1595 }
1596}
1597
1598async function handleTestSub2ApiService() {
1599 const apiUrl = document.getElementById('sub2api-service-url').value.trim();

Callers

nothing calls this directly

Calls 3

successMethod · 0.80
errorMethod · 0.80
postMethod · 0.45

Tested by

no test coverage detected