Skip to content

Commit

Permalink
fix: updated other endpoints to use v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeeshan Abid committed Aug 5, 2024
1 parent cf7500d commit 9b0d855
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/interfaces/HposInterface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,7 @@ export function useHposInterface(): HposInterface {
try {
return await hposHolochainCall({
method: 'get',
pathPrefix: '/api/v2',
path: '/host/invoices',
params: { invoice_set: 'paid' }
})
Expand All @@ -837,6 +838,7 @@ export function useHposInterface(): HposInterface {
try {
return await hposHolochainCall({
method: 'get',
pathPrefix: '/api/v2',
path: '/host/invoices',
params: { invoice_set: 'unpaid' }
})
Expand All @@ -863,6 +865,7 @@ export function useHposInterface(): HposInterface {
// @ts-ignore
const { version: coreAppVersion } = await hposHolochainCall({
method: 'get',
pathPrefix: '/api/v2',
path: '/apps/core/version'
})

Expand All @@ -885,6 +888,7 @@ export function useHposInterface(): HposInterface {
// @ts-ignore
const data = await hposHolochainCall({
method: 'get',
pathPrefix: '/api/v2',
path: '/host/kyc_level'
})

Expand Down

0 comments on commit 9b0d855

Please sign in to comment.