Skip to content

Commit e0b38ab

Browse files
Merge pull request #8549 from BitGo/WCI-40_operationId
docs(express): updated operationId for coinSignTx V2
2 parents 95ef262 + 1941619 commit e0b38ab

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

modules/express/src/clientRoutes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ async function handleV2SignTxWallet(req: ExpressApiRouteRequest<'express.v2.wall
746746
* handle sign transaction
747747
* @param req
748748
*/
749-
async function handleV2SignTx(req: ExpressApiRouteRequest<'express.v2.coin.signtx', 'post'>) {
749+
async function handleV2SignTx(req: ExpressApiRouteRequest<'express.signtx', 'post'>) {
750750
const bitgo = req.bitgo;
751751
const coin = bitgo.coin(req.decoded.coin);
752752
try {
@@ -1784,7 +1784,7 @@ export function setupAPIRoutes(app: express.Application, config: Config): void {
17841784
router.post('express.ofc.signPayload', [prepareBitGo(config), typedPromiseWrapper(handleV2OFCSignPayload)]);
17851785

17861786
// sign transaction
1787-
router.post('express.v2.coin.signtx', [prepareBitGo(config), typedPromiseWrapper(handleV2SignTx)]);
1787+
router.post('express.signtx', [prepareBitGo(config), typedPromiseWrapper(handleV2SignTx)]);
17881788
router.post('express.v2.wallet.signtx', [prepareBitGo(config), typedPromiseWrapper(handleV2SignTxWallet)]);
17891789
router.post('express.v2.wallet.signtxtss', [prepareBitGo(config), typedPromiseWrapper(handleV2SignTSSWalletTx)]);
17901790
router.post('express.wallet.recovertoken', [prepareBitGo(config), typedPromiseWrapper(handleV2RecoverToken)]);

modules/express/src/typedRoutes/api/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ export const ExpressWalletEnableTokensApiSpec = apiSpec({
270270
});
271271

272272
export const ExpressCoinSigningApiSpec = apiSpec({
273-
'express.v2.coin.signtx': {
273+
'express.signtx': {
274274
post: PostCoinSignTx,
275275
},
276276
});

modules/express/src/typedRoutes/api/v2/coinSignTx.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ export const CoinSignTxResponse = {
396396
/**
397397
* 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
398398
*
399-
* @operationId express.v2.coin.signtx
399+
* @operationId express.signtx
400400
* @tag Express
401401
*/
402402
export const PostCoinSignTx = httpRoute({

0 commit comments

Comments
 (0)