Files
mpc/pkg/api
zeekayandHanzo Dev 01db2a1edf api: doc comments said /api/v1 for routes that are /v1
Every route in pkg/api is mounted under r.Route("/v1", ...) at server.go:272,
so /auth/oidc is /v1/auth/oidc and trade/submit is /v1/.../trade/submit. Nine
doc comments claimed an /api/v1 prefix that no route has ever carried:

  handlers_trade_approval.go  submit / approve / reject / pending
  handlers_oidc.go            auth/oidc
  handlers_bridge.go          generate_mpc_sig / complete
  server.go                   the health-check note and the trade-endpoint note

handlers_approval.go already states the rule in-tree — "One canonical surface —
no `/api/` prefix, no v2" — so these were drift, not a second convention.

Comments that misdescribe a route are the same failure as a config that
misdescribes a threshold: they are what an audit reads. This is documentation
only; no route, handler or behaviour changes.

Remaining /api/ in this repo is all foreign and stays: pkg/hsm/zymbit.go (Zymbit
HSM device), pkg/hsm/providers.go (AWS IMDS), pkg/risk/chainalysis.go
(Chainalysis vendor). pkg/hsm/kms.go is a separate matter — it is an Infisical
client (/api/v3/secrets/raw with workspaceId/secretPath/type:shared), so moving
it to our native /v1/kms/orgs/{org}/secrets is a port, not a path swap.

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-25 23:23:53 -07:00
..