diff options
Diffstat (limited to 'src/features/announcements/api.js')
-rw-r--r-- | src/features/announcements/api.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/features/announcements/api.js b/src/features/announcements/api.js index a7995d6db..e5c5a7d6f 100644 --- a/src/features/announcements/api.js +++ b/src/features/announcements/api.js | |||
@@ -1,6 +1,5 @@ | |||
1 | import { remote } from 'electron'; | 1 | import { remote } from 'electron'; |
2 | import Request from '../../stores/lib/Request'; | 2 | import Request from '../../stores/lib/Request'; |
3 | import apiBase from '../../api/apiBase'; | ||
4 | 3 | ||
5 | const debug = require('debug')('Ferdi:feature:announcements:api'); | 4 | const debug = require('debug')('Ferdi:feature:announcements:api'); |
6 | 5 | ||
@@ -12,7 +11,7 @@ export const announcementsApi = { | |||
12 | 11 | ||
13 | async getChangelog(version) { | 12 | async getChangelog(version) { |
14 | debug('fetching release changelog from Github'); | 13 | debug('fetching release changelog from Github'); |
15 | const url = `https://api.github.com/repos/meetfranz/franz/releases/tags/v${version}`; | 14 | const url = `https://api.github.com/repos/getferdi/ferdi/releases/tags/v${version}`; |
16 | const request = await window.fetch(url, { method: 'GET' }); | 15 | const request = await window.fetch(url, { method: 'GET' }); |
17 | if (!request.ok) return null; | 16 | if (!request.ok) return null; |
18 | const data = await request.json(); | 17 | const data = await request.json(); |
@@ -21,7 +20,7 @@ export const announcementsApi = { | |||
21 | 20 | ||
22 | async getAnnouncement(version) { | 21 | async getAnnouncement(version) { |
23 | debug('fetching release announcement from api'); | 22 | debug('fetching release announcement from api'); |
24 | const url = `${apiBase()}/announcements/${version}`; | 23 | const url = `https://api.getferdi.com/v1/announcements/${version}`; |
25 | const response = await window.fetch(url, { method: 'GET' }); | 24 | const response = await window.fetch(url, { method: 'GET' }); |
26 | if (!response.ok) return null; | 25 | if (!response.ok) return null; |
27 | return response.json(); | 26 | return response.json(); |