diff options
author | 2019-04-16 11:48:36 +0200 | |
---|---|---|
committer | 2019-04-16 11:48:36 +0200 | |
commit | 82195efa887767443bb514edad6d04a6f1a6b62e (patch) | |
tree | 8a49a5e84333fab64dee113da0608e45fdb7ddc1 /src/api/server | |
parent | increase app opens to show share franz overlay (diff) | |
parent | Merge branch 'develop' into chore/streamline-dashboard (diff) | |
download | ferdium-app-82195efa887767443bb514edad6d04a6f1a6b62e.tar.gz ferdium-app-82195efa887767443bb514edad6d04a6f1a6b62e.tar.zst ferdium-app-82195efa887767443bb514edad6d04a6f1a6b62e.zip |
Merge pull request #1393 from meetfranz/chore/streamline-dashboard
Feature/User Websocket
Diffstat (limited to 'src/api/server')
-rw-r--r-- | src/api/server/ServerApi.js | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/api/server/ServerApi.js b/src/api/server/ServerApi.js index ab27e92bf..a9ce202ff 100644 --- a/src/api/server/ServerApi.js +++ b/src/api/server/ServerApi.js | |||
@@ -418,23 +418,6 @@ export default class ServerApi { | |||
418 | return data; | 418 | return data; |
419 | } | 419 | } |
420 | 420 | ||
421 | async getPaymentDashboardUrl() { | ||
422 | const request = await sendAuthRequest(`${API_URL}/me/billing`); | ||
423 | if (!request.ok) throw request; | ||
424 | const data = await request.json(); | ||
425 | debug('ServerApi::getPaymentDashboardUrl resolves', data); | ||
426 | return data; | ||
427 | } | ||
428 | |||
429 | async getSubscriptionOrders() { | ||
430 | const request = await sendAuthRequest(`${API_URL}/me/subscription`); | ||
431 | if (!request.ok) throw request; | ||
432 | const data = await request.json(); | ||
433 | const orders = this._mapOrderModels(data); | ||
434 | debug('ServerApi::getSubscriptionOrders resolves', orders); | ||
435 | return orders; | ||
436 | } | ||
437 | |||
438 | // News | 421 | // News |
439 | async getLatestNews() { | 422 | async getLatestNews() { |
440 | const url = `${API_URL}/news?platform=${os.platform()}&arch=${os.arch()}&version=${app.getVersion()}`; | 423 | const url = `${API_URL}/news?platform=${os.platform()}&arch=${os.arch()}&version=${app.getVersion()}`; |