From 1a134f20c243a4668fb9aca1b4b18891e9ee5005 Mon Sep 17 00:00:00 2001 From: Lokesh Chandra Date: Wed, 15 Apr 2026 12:33:35 +0530 Subject: [PATCH] docs(express): updated operationId for pendingApprovals V2 Ticket: WCI-34 --- modules/express/src/clientRoutes.ts | 4 ++-- modules/express/src/typedRoutes/api/index.ts | 2 +- modules/express/src/typedRoutes/api/v2/pendingApproval.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/express/src/clientRoutes.ts b/modules/express/src/clientRoutes.ts index 55e2eddb8e..5f1cf21b46 100755 --- a/modules/express/src/clientRoutes.ts +++ b/modules/express/src/clientRoutes.ts @@ -684,7 +684,7 @@ export async function handleV2IsWalletAddress( * handle v2 approve transaction * @param req */ -async function handleV2PendingApproval(req: ExpressApiRouteRequest<'express.v2.pendingapprovals', 'put'>) { +async function handleV2PendingApproval(req: ExpressApiRouteRequest<'express.pendingapprovals', 'put'>) { const bitgo = req.bitgo; const coin = bitgo.coin(req.decoded.coin); const params = req.body || {}; @@ -1834,7 +1834,7 @@ export function setupAPIRoutes(app: express.Application, config: Config): void { // Miscellaneous router.post('express.canonicaladdress', [prepareBitGo(config), typedPromiseWrapper(handleCanonicalAddress)]); router.post('express.verifycoinaddress', [prepareBitGo(config), typedPromiseWrapper(handleV2VerifyAddress)]); - router.put('express.v2.pendingapprovals', [prepareBitGo(config), typedPromiseWrapper(handleV2PendingApproval)]); + router.put('express.pendingapprovals', [prepareBitGo(config), typedPromiseWrapper(handleV2PendingApproval)]); // lightning - pay invoice router.post('express.v2.wallet.lightningPayment', [ diff --git a/modules/express/src/typedRoutes/api/index.ts b/modules/express/src/typedRoutes/api/index.ts index 86d17d81cb..e4075ae2c5 100644 --- a/modules/express/src/typedRoutes/api/index.ts +++ b/modules/express/src/typedRoutes/api/index.ts @@ -128,7 +128,7 @@ export const ExpressPendingApprovalsApiSpec = apiSpec({ 'express.v1.pendingapprovals': { put: PutPendingApproval, }, - 'express.v2.pendingapprovals': { + 'express.pendingapprovals': { put: PutV2PendingApproval, }, }); diff --git a/modules/express/src/typedRoutes/api/v2/pendingApproval.ts b/modules/express/src/typedRoutes/api/v2/pendingApproval.ts index ea0fe1279e..60caa852a6 100644 --- a/modules/express/src/typedRoutes/api/v2/pendingApproval.ts +++ b/modules/express/src/typedRoutes/api/v2/pendingApproval.ts @@ -132,7 +132,7 @@ export const PendingApprovalResponse = t.intersection([ /** * Accept or reject a pending approval * - * @operationId express.v2.pendingapprovals + * @operationId express.pendingapprovals * @tag Express */ export const PutV2PendingApproval = httpRoute({