connect tailscale node status through platform gateway
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2026-07-08 17:22:33 +09:00
parent 8973598977
commit 0a637d29d4
+9
View File
@@ -28,8 +28,17 @@ adminRoutes.get('/admin/tailscale/routes', async (c) => {
})
adminRoutes.get('/admin/tailscale/acl', async (c) => {
const emptyPolicy = { groups: {}, tagOwners: {}, acls: [], raw: null }
try {
return c.json({
policy: await headscaleAdapter.getPolicyStatus(),
fetchedAt: new Date().toISOString(),
})
} catch (error) {
return c.json({
policy: emptyPolicy,
error: error instanceof Error ? error.message : String(error),
fetchedAt: new Date().toISOString(),
})
}
})