Skip to content

Commit 30d611c

Browse files
committed
Use netlify-agnostic API URLs
1 parent 81d85aa commit 30d611c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/model/account/auth.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ async function requestUserData(): Promise<string> {
328328
const token = await getToken();
329329
if (!token) return '';
330330

331-
const appDataResponse = await fetch('https://accounts.httptoolkit.tech/.netlify/functions/get-app-data', {
331+
const appDataResponse = await fetch('https://accounts.httptoolkit.tech/api/get-app-data', {
332332
method: 'GET',
333333
headers: {
334334
'Authorization': `Bearer ${token}`

src/model/account/subscriptions.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const SubscriptionPlans = {
2222

2323
async function loadPlanPrices() {
2424
const response = await fetch(
25-
`https://accounts.httptoolkit.tech/.netlify/functions/get-prices?product_ids=${
25+
`https://accounts.httptoolkit.tech/api/get-prices?product_ids=${
2626
Object.values(SubscriptionPlans).map(plan => plan.id).join(',')
2727
}`
2828
);

0 commit comments

Comments
 (0)