Skip to content

Commit 1cf1602

Browse files
docs(express): update opId for lightningpayment
TICKET: WCI-65
1 parent eb28af8 commit 1cf1602

4 files changed

Lines changed: 4 additions & 7 deletions

File tree

modules/express/src/clientRoutes.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1837,10 +1837,7 @@ export function setupAPIRoutes(app: express.Application, config: Config): void {
18371837
router.put('express.pendingapprovals', [prepareBitGo(config), typedPromiseWrapper(handleV2PendingApproval)]);
18381838

18391839
// lightning - pay invoice
1840-
router.post('express.v2.wallet.lightningPayment', [
1841-
prepareBitGo(config),
1842-
typedPromiseWrapper(handlePayLightningInvoice),
1843-
]);
1840+
router.post('express.lightningpayinvoice', [prepareBitGo(config), typedPromiseWrapper(handlePayLightningInvoice)]);
18441841

18451842
// lightning - onchain withdrawal
18461843
router.post('express.v2.wallet.lightningWithdraw', [

modules/express/src/lightning/lightningInvoiceRoutes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export async function handleCreateLightningInvoice(req: express.Request): Promis
1919
}
2020

2121
export async function handlePayLightningInvoice(
22-
req: ExpressApiRouteRequest<'express.v2.wallet.lightningPayment', 'post'>
22+
req: ExpressApiRouteRequest<'express.lightningpayinvoice', 'post'>
2323
): Promise<any> {
2424
const bitgo = req.bitgo;
2525
const params = decodeOrElse(SubmitPaymentParams.name, SubmitPaymentParams, req.body, (error) => {

modules/express/src/typedRoutes/api/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ export const ExpressKeychainChangePasswordApiSpec = apiSpec({
222222
});
223223

224224
export const ExpressLightningWalletPaymentApiSpec = apiSpec({
225-
'express.v2.wallet.lightningPayment': {
225+
'express.lightningpayinvoice': {
226226
post: PostLightningWalletPayment,
227227
},
228228
});

modules/express/src/typedRoutes/api/v2/lightningPayment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ export const LightningPaymentResponseObj = {
218218
* Pay a Lightning Network invoice from the given wallet.
219219
*
220220
*
221-
* @operationId express.v2.wallet.lightningPayment
221+
* @operationId express.lightningpayinvoice
222222
* @tag Express
223223
*/
224224
export const PostLightningWalletPayment = httpRoute({

0 commit comments

Comments
 (0)