mirror of
https://github.com/gethomepage/homepage.git
synced 2026-01-07 07:52:08 +08:00
Enhancement: fritzbox uptime display (#2481)
This commit is contained in:
@@ -50,12 +50,12 @@ export default async function fritzboxProxyHandler(req, res) {
|
||||
const serviceWidget = await getServiceWidget(group, service);
|
||||
|
||||
if (!serviceWidget) {
|
||||
res.status(500).json({ error: "Service widget not found" });
|
||||
res.status(500).json({ error: { message: "Service widget not found" } });
|
||||
return;
|
||||
}
|
||||
|
||||
if (!serviceWidget.url) {
|
||||
res.status(500).json({ error: "Service widget url not configured" });
|
||||
res.status(500).json({ error: { message: "Service widget url not configured" } });
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -91,6 +91,6 @@ export default async function fritzboxProxyHandler(req, res) {
|
||||
});
|
||||
})
|
||||
.catch((error) => {
|
||||
res.status(500).json({ error: error.message });
|
||||
res.status(500).json({ error: { message: error.message } });
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user