refactor: remove capabilities in favor of endpoints

This commit is contained in:
2025-09-13 19:15:38 +02:00
parent 3055c2cb0e
commit d0557a56a2
6 changed files with 98 additions and 104 deletions

View File

@@ -80,11 +80,11 @@ class ApiClient {
return this.request('/api/tasks/status', { method: 'GET', query: ip ? { ip } : undefined });
}
async getCapabilities(ip) {
return this.request('/api/node/capabilities', { method: 'GET', query: ip ? { ip } : undefined });
async getEndpoints(ip) {
return this.request('/api/node/endpoints', { method: 'GET', query: ip ? { ip } : undefined });
}
async callCapability({ ip, method, uri, params }) {
async callEndpoint({ ip, method, uri, params }) {
return this.request('/api/proxy-call', {
method: 'POST',
body: { ip, method, uri, params }