Skip to content

Commit

Permalink
updated react ui for api proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
mfreeman451 committed Feb 26, 2025
1 parent 1edeb17 commit 597e447
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/src/services/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ export const apiRequest = async (url, options = {}) => {
headers['X-API-Key'] = apiKey;
}

const proxyUrl = url.replace(/^\/api\//, '/web-api/');

// Make the request with the headers
return fetch(url, {
return fetch(proxyUrl, {
...options,
headers,
});
Expand Down

0 comments on commit 597e447

Please sign in to comment.