forked from extern/homer
No authentication required for public endpoint
This commit is contained in:
parent
abfe72b9cf
commit
5c42d50d47
@ -59,11 +59,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
fetchServerStatus: async function () {
|
fetchServerStatus: async function () {
|
||||||
const headers = {
|
await this.fetch("/System/info/public")
|
||||||
"X-Emby-Token": this.item.apikey,
|
|
||||||
};
|
|
||||||
|
|
||||||
await this.fetch("/System/info/public", { headers })
|
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
if (response.Id) this.status = "running";
|
if (response.Id) this.status = "running";
|
||||||
else this.status = "dead";
|
else this.status = "dead";
|
||||||
|
Loading…
Reference in New Issue
Block a user