diff options
Diffstat (limited to 'src/features/apiBase.js')
-rw-r--r-- | src/features/apiBase.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/features/apiBase.js b/src/features/apiBase.js index 961414668..d4b092995 100644 --- a/src/features/apiBase.js +++ b/src/features/apiBase.js | |||
@@ -2,7 +2,8 @@ | |||
2 | * Get API base URL from store | 2 | * Get API base URL from store |
3 | */ | 3 | */ |
4 | import { | 4 | import { |
5 | API_VERSION | 5 | API_VERSION, |
6 | API, | ||
6 | } from '../environment'; | 7 | } from '../environment'; |
7 | 8 | ||
8 | const apiBase = () => { | 9 | const apiBase = () => { |
@@ -15,10 +16,10 @@ const apiBase = () => { | |||
15 | url = window.ferdi.stores.settings.all.app.server; | 16 | url = window.ferdi.stores.settings.all.app.server; |
16 | } else { | 17 | } else { |
17 | // Use default server url | 18 | // Use default server url |
18 | url = SERVER_URL; | 19 | url = API; |
19 | } | 20 | } |
20 | 21 | ||
21 | return `${url}/${API_VERSION}`; | 22 | return `${url}/${API_VERSION}`; |
22 | } | 23 | }; |
23 | 24 | ||
24 | export default apiBase \ No newline at end of file | 25 | export default apiBase; |