diff --git a/modules/express/src/clientRoutes.ts b/modules/express/src/clientRoutes.ts index 5f1cf21b46..b71678b592 100755 --- a/modules/express/src/clientRoutes.ts +++ b/modules/express/src/clientRoutes.ts @@ -746,7 +746,7 @@ async function handleV2SignTxWallet(req: ExpressApiRouteRequest<'express.v2.wall * handle sign transaction * @param req */ -async function handleV2SignTx(req: ExpressApiRouteRequest<'express.v2.coin.signtx', 'post'>) { +async function handleV2SignTx(req: ExpressApiRouteRequest<'express.signtx', 'post'>) { const bitgo = req.bitgo; const coin = bitgo.coin(req.decoded.coin); try { @@ -1784,7 +1784,7 @@ export function setupAPIRoutes(app: express.Application, config: Config): void { router.post('express.ofc.signPayload', [prepareBitGo(config), typedPromiseWrapper(handleV2OFCSignPayload)]); // sign transaction - router.post('express.v2.coin.signtx', [prepareBitGo(config), typedPromiseWrapper(handleV2SignTx)]); + router.post('express.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.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 cc734369a8..bbaf53079e 100644 --- a/modules/express/src/typedRoutes/api/index.ts +++ b/modules/express/src/typedRoutes/api/index.ts @@ -270,7 +270,7 @@ export const ExpressWalletEnableTokensApiSpec = apiSpec({ }); export const ExpressCoinSigningApiSpec = apiSpec({ - 'express.v2.coin.signtx': { + 'express.signtx': { post: PostCoinSignTx, }, }); diff --git a/modules/express/src/typedRoutes/api/v2/coinSignTx.ts b/modules/express/src/typedRoutes/api/v2/coinSignTx.ts index 8cd2f86ce7..3340a0a150 100644 --- a/modules/express/src/typedRoutes/api/v2/coinSignTx.ts +++ b/modules/express/src/typedRoutes/api/v2/coinSignTx.ts @@ -396,7 +396,7 @@ export const CoinSignTxResponse = { /** * This route is for users who would like to maintain their own keys, or otherwise would not like BitGo to decrypt their key, and instead provide it in the clear themselves * - * @operationId express.v2.coin.signtx + * @operationId express.signtx * @tag Express */ export const PostCoinSignTx = httpRoute({