diff --git a/modules/express/src/clientRoutes.ts b/modules/express/src/clientRoutes.ts index 9b876303b5..5d68f34095 100755 --- a/modules/express/src/clientRoutes.ts +++ b/modules/express/src/clientRoutes.ts @@ -730,7 +730,7 @@ async function handleV2AcceptWalletShare(req: express.Request) { /** * handle wallet sign transaction */ -async function handleV2SignTxWallet(req: ExpressApiRouteRequest<'express.v2.wallet.signtx', 'post'>) { +async function handleV2SignTxWallet(req: ExpressApiRouteRequest<'express.wallet.signtx', 'post'>) { const bitgo = req.bitgo; const coin = bitgo.coin(req.decoded.coin); const wallet = await coin.wallets().get({ id: req.decoded.id }); @@ -1785,7 +1785,7 @@ export function setupAPIRoutes(app: express.Application, config: Config): void { // sign transaction router.post('express.signtx', [prepareBitGo(config), typedPromiseWrapper(handleV2SignTx)]); - router.post('express.v2.wallet.signtx', [prepareBitGo(config), typedPromiseWrapper(handleV2SignTxWallet)]); + router.post('express.wallet.signtx', [prepareBitGo(config), typedPromiseWrapper(handleV2SignTxWallet)]); router.post('express.wallet.signtxtss', [prepareBitGo(config), typedPromiseWrapper(handleV2SignTSSWalletTx)]); router.post('express.wallet.recovertoken', [prepareBitGo(config), typedPromiseWrapper(handleV2RecoverToken)]); diff --git a/modules/express/src/typedRoutes/api/index.ts b/modules/express/src/typedRoutes/api/index.ts index 6b08dff1ce..b672dfb355 100644 --- a/modules/express/src/typedRoutes/api/index.ts +++ b/modules/express/src/typedRoutes/api/index.ts @@ -288,7 +288,7 @@ export const ExpressExternalSigningApiSpec = apiSpec({ }); export const ExpressWalletSigningApiSpec = apiSpec({ - 'express.v2.wallet.signtx': { + 'express.wallet.signtx': { post: PostWalletSignTx, }, 'express.wallet.signtxtss': { diff --git a/modules/express/src/typedRoutes/api/v2/walletSignTx.ts b/modules/express/src/typedRoutes/api/v2/walletSignTx.ts index 814df3bb4b..69a9d07bd6 100644 --- a/modules/express/src/typedRoutes/api/v2/walletSignTx.ts +++ b/modules/express/src/typedRoutes/api/v2/walletSignTx.ts @@ -144,7 +144,7 @@ export const WalletSignTxResponse = { /** * Sign transactions for multisignature wallets using external-signing mode. You must maintain your keys, in the clear, on a separate Express server. BitGo doesn't decrypt your private keys. * - * @operationId express.v2.wallet.signtx + * @operationId express.wallet.signtx * @tag Express */ export const PostWalletSignTx: HttpRoute<'post'> = httpRoute({