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

@@ -430,7 +430,7 @@ export default {
if (!this.channelId || !this.authenticated) return;
this.fetchJson(
this.apiUrl() + "/subscribed",
this.authApiUrl() + "/subscribed",
{
channelId: this.channelId,
},
@@ -444,7 +444,7 @@ export default {
});
},
subscribeHandler() {
this.fetchJson(this.apiUrl() + (this.subscribed ? "/unsubscribe" : "/subscribe"), null, {
this.fetchJson(this.authApiUrl() + (this.subscribed ? "/unsubscribe" : "/subscribe"), null, {
method: "POST",
body: JSON.stringify({
channelId: this.channelId,