mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-02 13:33:40 +01:00
feature: improvement login api calls
This commit is contained in:
parent
5c5b677075
commit
57dae4021d
@ -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…
x
Reference in New Issue
Block a user