Commit f665278e authored by 神楽坂玲奈's avatar 神楽坂玲奈

router info

parent f0cfb7a3
Pipeline #15747 passed with stages
in 53 seconds
...@@ -35,6 +35,9 @@ http ...@@ -35,6 +35,9 @@ http
res.writeHead(200, { 'Content-Type': 'application/json' }); res.writeHead(200, { 'Content-Type': 'application/json' });
const result = Router.all.map(from => ({ const result = Router.all.map(from => ({
id: from.id, id: from.id,
name: from.name,
address: from.address,
location: from.location,
peers: from.peers, peers: from.peers,
via: Object.fromEntries([...from.via.entries()].map(([to, via]) => [to.id, via.id])) via: Object.fromEntries([...from.via.entries()].map(([to, via]) => [to.id, via.id]))
})); }));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment