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
5 changes: 1 addition & 4 deletions modules/express/src/clientRoutes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1837,10 +1837,7 @@ export function setupAPIRoutes(app: express.Application, config: Config): void {
router.put('express.pendingapprovals', [prepareBitGo(config), typedPromiseWrapper(handleV2PendingApproval)]);

// lightning - pay invoice
router.post('express.v2.wallet.lightningPayment', [
prepareBitGo(config),
typedPromiseWrapper(handlePayLightningInvoice),
]);
router.post('express.lightningpayinvoice', [prepareBitGo(config), typedPromiseWrapper(handlePayLightningInvoice)]);

// lightning - onchain withdrawal
router.post('express.v2.wallet.lightningWithdraw', [
Expand Down
2 changes: 1 addition & 1 deletion modules/express/src/lightning/lightningInvoiceRoutes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export async function handleCreateLightningInvoice(req: express.Request): Promis
}

export async function handlePayLightningInvoice(
req: ExpressApiRouteRequest<'express.v2.wallet.lightningPayment', 'post'>
req: ExpressApiRouteRequest<'express.lightningpayinvoice', 'post'>
): Promise<any> {
const bitgo = req.bitgo;
const params = decodeOrElse(SubmitPaymentParams.name, SubmitPaymentParams, req.body, (error) => {
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 @@ -222,7 +222,7 @@ export const ExpressKeychainChangePasswordApiSpec = apiSpec({
});

export const ExpressLightningWalletPaymentApiSpec = apiSpec({
'express.v2.wallet.lightningPayment': {
'express.lightningpayinvoice': {
post: PostLightningWalletPayment,
},
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export const LightningPaymentResponseObj = {
* Pay a Lightning Network invoice from the given wallet.
*
*
* @operationId express.v2.wallet.lightningPayment
* @operationId express.lightningpayinvoice
* @tag Express
*/
export const PostLightningWalletPayment = httpRoute({
Expand Down
Loading