MCPcopy Create free account
hub / github.com/compozy/agh / BridgeRoutes

Method BridgeRoutes

internal/cli/client.go:2512–2521  ·  view source on GitHub ↗
(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

2510}
2511
2512func (c *unixSocketClient) BridgeRoutes(ctx context.Context, id string) ([]BridgeRouteRecord, error) {
2513 var response struct {
2514 Routes []BridgeRouteRecord `json:"routes"`
2515 }
2516 path := "/api/bridges/" + url.PathEscape(strings.TrimSpace(id)) + "/routes"
2517 if err := c.doJSON(ctx, http.MethodGet, path, nil, nil, &response); err != nil {
2518 return nil, err
2519 }
2520 return response.Routes, nil
2521}
2522
2523func (c *unixSocketClient) BridgeTargets(
2524 ctx context.Context,

Callers 1

Calls 1

doJSONMethod · 0.95

Tested by 1