Skip to content

Commit 591ffb1

Browse files
committed
Fix apis
1 parent e505bec commit 591ffb1

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

src/app/p2p/p2p/peachbitcoin/api.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import axios from 'axios';
2-
import { getOfferDetails, Order as PeachOrder } from 'peach-api-ts/src/private/offer/getOfferDetails';
3-
2+
import { getOfferDetails } from 'peach-api-ts/src/private/offer/getOfferDetails';
43
const baseURL = 'https://api.peachbitcoin.com/v1'; // Peach API base URL
54
const apiKey = 'your-api-key-here'; // Make sure to replace this with your actual API key
65

src/app/p2p/p2p/robosats/api.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,3 @@ interface Order {
3737

3838
createOrder(order);
3939

40-
async function getSecureData() {
41-
try {
42-
const response = await axios.get(`${baseURL}/secure-endpoint`, {
43-
headers: {
44-
'Authorization': `Bearer ${apiKey}`,
45-
},
46-
});
47-
console.log(response.data);
48-
} catch (error) {
49-
console.error('Error fetching secure data:', error);
50-
}
51-
}

0 commit comments

Comments
 (0)