mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 21:59:50 +01:00
feature: improvement login api calls
This commit is contained in:
@@ -93,7 +93,9 @@ export default async function homebridgeProxyHandler(req, res) {
|
|||||||
return res.status(400).json({ error: "Invalid proxy service type" });
|
return res.status(400).json({ error: "Invalid proxy service type" });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!cache.get(sessionTokenCacheKey)) {
|
||||||
await login(widget);
|
await login(widget);
|
||||||
|
}
|
||||||
|
|
||||||
const statusRs = await apiCall(widget, "status/homebridge");
|
const statusRs = await apiCall(widget, "status/homebridge");
|
||||||
const versionRs = await apiCall(widget, "status/homebridge-version");
|
const versionRs = await apiCall(widget, "status/homebridge-version");
|
||||||
|
|||||||
Reference in New Issue
Block a user