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

@@ -466,7 +466,7 @@ app.get('/api/node/status', async (req, res) => {
});
// Proxy endpoint to get node capabilities (optionally for a specific node via ?ip=)
app.get('/api/node/capabilities', async (req, res) => {
app.get('/api/node/endpoints', async (req, res) => {
try {
const { ip } = req.query;
@@ -476,9 +476,9 @@ app.get('/api/node/capabilities', async (req, res) => {
const caps = await nodeClient.getCapabilities();
return res.json(caps);
} catch (innerError) {
console.error('Error fetching capabilities from specific node:', innerError);
console.error('Error fetching endpoints from specific node:', innerError);
return res.status(500).json({
error: 'Failed to fetch capabilities from node',
error: 'Failed to fetch endpoints from node',
message: innerError.message
});
}