mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-10 07:18:47 +00:00
Merge branch 'widget/homebridge' of https://github.com/Fernando-Neira/homepage into pr/442
This commit is contained in:
commit
df3e2eff11
1 changed files with 3 additions and 1 deletions
|
@ -93,7 +93,9 @@ export default async function homebridgeProxyHandler(req, res) {
|
|||
return res.status(400).json({ error: "Invalid proxy service type" });
|
||||
}
|
||||
|
||||
await login(widget);
|
||||
if (!cache.get(sessionTokenCacheKey)) {
|
||||
await login(widget);
|
||||
}
|
||||
|
||||
const statusRs = await apiCall(widget, "status/homebridge");
|
||||
const versionRs = await apiCall(widget, "status/homebridge-version");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue