Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit 6fd208c

Browse files
committed
changed hostname
1 parent 0f06d3b commit 6fd208c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

webapp_frontend/src/background/api/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Axios, {} from "axios";
22
import {constants} from "../constants";
33

4-
const hostname:string =constants.url.API_URL;
4+
const hostname:string =constants.url.API_URL+'/api';
55

66

77
interface BackendHealthData {

webapp_frontend/src/background/constants.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ interface constants {
66

77
const prod: constants = {
88
url: {
9-
API_URL: window.location.hostname,
9+
API_URL: window.location.origin,
1010
}
1111
}
1212

1313
const dev: constants = {
1414
url: {
15-
API_URL: 'http://filefighter.ddns.net:7000/',
15+
API_URL: 'http://filefighter.ddns.net:3001',
1616
}
1717
};
1818
export const constants = process.env.NODE_ENV === 'development' ? dev : prod;

0 commit comments

Comments
 (0)