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 @@ -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 {
Expand Down Expand Up @@ -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)]);
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 @@ -270,7 +270,7 @@ export const ExpressWalletEnableTokensApiSpec = apiSpec({
});

export const ExpressCoinSigningApiSpec = apiSpec({
'express.v2.coin.signtx': {
'express.signtx': {
post: PostCoinSignTx,
},
});
Expand Down
2 changes: 1 addition & 1 deletion modules/express/src/typedRoutes/api/v2/coinSignTx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
Loading