Allow the usage of a different instance for authentication.

This commit is contained in:
Kavin
2022-07-21 09:34:57 +05:30
parent 7803732da6
commit 37512b4e77
13 changed files with 65 additions and 30 deletions

View File

@@ -41,7 +41,7 @@ export default {
},
computed: {
getRssUrl(_this) {
return _this.apiUrl() + "/feed/rss?authToken=" + _this.getAuthToken();
return _this.authApiUrl() + "/feed/rss?authToken=" + _this.getAuthToken();
},
},
mounted() {
@@ -66,7 +66,7 @@ export default {
},
methods: {
async fetchFeed() {
return await this.fetchJson(this.apiUrl() + "/feed", {
return await this.fetchJson(this.authApiUrl() + "/feed", {
authToken: this.getAuthToken(),
});
},