diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-10-23 20:19:50 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-23 20:19:50 -0500 |
| commit | eea5d6376a4bfdd8c190bfd8bc031960222af098 (patch) | |
| tree | 18030e2c16c16b5c63a8379e99b2de0b30908808 /src | |
| parent | 8cb9c8de52b65207ef35236c2c7d0de6f28ec082 (diff) | |
| parent | bda2939f940656d3a209c5bd8315e724360a40a3 (diff) | |
| download | slskd-eea5d6376a4bfdd8c190bfd8bc031960222af098.tar.gz | |
Merge branch 'master' into jwt
Diffstat (limited to 'src')
| -rw-r--r-- | src/web/src/config.js | 4 | ||||
| -rw-r--r-- | src/web/src/lib/hubFactory.js | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/web/src/config.js b/src/web/src/config.js index bd05aea5..ea71e9dd 100644 --- a/src/web/src/config.js +++ b/src/web/src/config.js @@ -1,5 +1,5 @@ -const rootUrl = process.env.NODE_ENV === 'production' ? '' : 'http://localhost:5000'; -const baseUrl = `${rootUrl}/api/v0`; +const rootUrl = process.env.NODE_ENV === 'production' ? '' : 'http://localhost:5000/'; +const baseUrl = `${rootUrl}api/v0`; const tokenKey = 'slskd-token'; const tokenPassthroughValue = 'n/a'; const activeChatKey = 'slskd-active-chat'; diff --git a/src/web/src/lib/hubFactory.js b/src/web/src/lib/hubFactory.js index b57faa25..8ccd62ff 100644 --- a/src/web/src/lib/hubFactory.js +++ b/src/web/src/lib/hubFactory.js @@ -17,6 +17,6 @@ export const createHubConnection = ({ url }) => .configureLogging(LogLevel.Warning) .build(); -export const createApplicationHubConnection = () => createHubConnection({ url: `${rootUrl}/hub/application` }); +export const createApplicationHubConnection = () => createHubConnection({ url: `${rootUrl}hub/application` }); -export const createLogsHubConnection = () => createHubConnection({ url: `${rootUrl}/hub/logs` });
\ No newline at end of file +export const createLogsHubConnection = () => createHubConnection({ url: `${rootUrl}hub/logs` });
\ No newline at end of file |
