Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions modules/express/src/clientRoutes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 || {};
Expand Down Expand Up @@ -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', [
Expand Down
2 changes: 1 addition & 1 deletion modules/express/src/typedRoutes/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export const ExpressPendingApprovalsApiSpec = apiSpec({
'express.v1.pendingapprovals': {
put: PutPendingApproval,
},
'express.v2.pendingapprovals': {
'express.pendingapprovals': {
put: PutV2PendingApproval,
},
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
Loading