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 @@ -703,7 +703,7 @@ export function handleV2CreateLocalKeyChain(req: ExpressApiRouteRequest<'express
* handle wallet share
* @param req
*/
export async function handleV2ShareWallet(req: ExpressApiRouteRequest<'express.v2.wallet.share', 'post'>) {
export async function handleV2ShareWallet(req: ExpressApiRouteRequest<'express.wallet.share', 'post'>) {
const bitgo = req.bitgo;
const coin = bitgo.coin(req.decoded.coin);
const wallet = await coin.wallets().get({ id: req.decoded.id });
Expand Down Expand Up @@ -1762,7 +1762,7 @@ export function setupAPIRoutes(app: express.Application, config: Config): void {
typedPromiseWrapper(handleV2IsWalletAddress),
]);

router.post('express.v2.wallet.share', [prepareBitGo(config), typedPromiseWrapper(handleV2ShareWallet)]);
router.post('express.wallet.share', [prepareBitGo(config), typedPromiseWrapper(handleV2ShareWallet)]);
app.post(
'/api/v2/:coin/walletshare/:id/acceptshare',
parseBody,
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 @@ -296,7 +296,7 @@ export const ExpressWalletSigningApiSpec = apiSpec({
});

export const ExpressWalletManagementApiSpec = apiSpec({
'express.v2.wallet.share': {
'express.wallet.share': {
post: PostShareWallet,
},
'express.wallet.update': {
Expand Down
2 changes: 1 addition & 1 deletion modules/express/src/typedRoutes/api/v2/shareWallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export const ShareWalletResponse = {
/**
* Share wallet with an existing BitGo user
*
* @operationId express.v2.wallet.share
* @operationId express.wallet.share
* @tag Express
*/
export const PostShareWallet = httpRoute({
Expand Down
2 changes: 1 addition & 1 deletion modules/express/test/unit/clientRoutes/shareWallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ describe('Share Wallet (typed handler)', () => {
permissions,
message,
},
} as unknown as ExpressApiRouteRequest<'express.v2.wallet.share', 'post'>;
} as unknown as ExpressApiRouteRequest<'express.wallet.share', 'post'>;

const res = await handleV2ShareWallet(req);
decodeOrElse('ShareWalletResponse200', ShareWalletResponse[200], res, (errors) => {
Expand Down
Loading