Skip to content

Commit 0f5aab8

Browse files
committed
refactor: add express prefix to update wallet route
To differentiate between backend and express route. When used for lightning the express route will do extra layer of verificaiton to ensure the request comes from the user with the correct auth key. Ticket: BTC-0
1 parent f417f2f commit 0f5aab8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/express/src/clientRoutes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1575,7 +1575,7 @@ export function setupAPIRoutes(app: express.Application, config: Config): void {
15751575
// generate wallet
15761576
app.post('/api/v2/:coin/wallet/generate', parseBody, prepareBitGo(config), promiseWrapper(handleV2GenerateWallet));
15771577

1578-
app.put('/api/v2/:coin/wallet/:id', parseBody, prepareBitGo(config), promiseWrapper(handleWalletUpdate));
1578+
app.put('/express/api/v2/:coin/wallet/:id', parseBody, prepareBitGo(config), promiseWrapper(handleWalletUpdate));
15791579

15801580
// create address
15811581
app.post('/api/v2/:coin/wallet/:id/address', parseBody, prepareBitGo(config), promiseWrapper(handleV2CreateAddress));

0 commit comments

Comments
 (0)