route.go
TEXT FILE426 B · Public source code for developers, search crawlers and AI agents
1package architecture
2
3import "fmt"
4
5// Route selects a fixed read-only endpoint, not a model-supplied URL.
6func Route(tool string) (string, string, error) {
7 switch tool {
8 case "health": return "GET", "/api/v5/btc/health", nil
9 case "balance": return "POST", "/api/v5/btc/wallet/balance", nil
10 case "utxos": return "POST", "/api/v5/btc/wallet/utxos", nil
11 default: return "", "", fmt.Errorf("unsupported tool %q", tool)
12 }
13}Read-only source · Select a line number to link directly · Raw download above
