diff --git a/modules/express/src/clientRoutes.ts b/modules/express/src/clientRoutes.ts index ff0c454456..846f582235 100755 --- a/modules/express/src/clientRoutes.ts +++ b/modules/express/src/clientRoutes.ts @@ -755,7 +755,7 @@ async function handleV2SignTx(req: ExpressApiRouteRequest<'express.v2.coin.signt * handle wallet recover token * @param req */ -async function handleV2RecoverToken(req: ExpressApiRouteRequest<'express.v2.wallet.recovertoken', 'post'>) { +async function handleV2RecoverToken(req: ExpressApiRouteRequest<'express.wallet.recovertoken', 'post'>) { const bitgo = req.bitgo; const coin = bitgo.coin(req.params.coin); @@ -1777,7 +1777,7 @@ export function setupAPIRoutes(app: express.Application, config: Config): void { router.post('express.v2.coin.signtx', [prepareBitGo(config), typedPromiseWrapper(handleV2SignTx)]); router.post('express.v2.wallet.signtx', [prepareBitGo(config), typedPromiseWrapper(handleV2SignTxWallet)]); router.post('express.v2.wallet.signtxtss', [prepareBitGo(config), typedPromiseWrapper(handleV2SignTSSWalletTx)]); - router.post('express.v2.wallet.recovertoken', [prepareBitGo(config), typedPromiseWrapper(handleV2RecoverToken)]); + router.post('express.wallet.recovertoken', [prepareBitGo(config), typedPromiseWrapper(handleV2RecoverToken)]); // send transaction router.post('express.v2.wallet.sendcoins', [prepareBitGo(config), typedPromiseWrapper(handleV2SendOne)]); diff --git a/modules/express/src/typedRoutes/api/index.ts b/modules/express/src/typedRoutes/api/index.ts index 24aed10b50..52c58f2671 100644 --- a/modules/express/src/typedRoutes/api/index.ts +++ b/modules/express/src/typedRoutes/api/index.ts @@ -257,7 +257,7 @@ export const ExpressOfcSignPayloadApiSpec = apiSpec({ }); export const ExpressWalletRecoverTokenApiSpec = apiSpec({ - 'express.v2.wallet.recovertoken': { + 'express.wallet.recovertoken': { post: PostWalletRecoverToken, }, }); diff --git a/modules/express/src/typedRoutes/api/v2/walletRecoverToken.ts b/modules/express/src/typedRoutes/api/v2/walletRecoverToken.ts index ed8d9dbec8..49ab0899e4 100644 --- a/modules/express/src/typedRoutes/api/v2/walletRecoverToken.ts +++ b/modules/express/src/typedRoutes/api/v2/walletRecoverToken.ts @@ -60,7 +60,7 @@ export const RecoverTokenResponse = t.type({ /** * Recover an unsupported Ethereum token from a BitGo multisig wallet * - * @operationId express.v2.wallet.recovertoken + * @operationId express.wallet.recovertoken * @tag Express */ export const PostWalletRecoverToken = httpRoute({