Add cputemp to resources widget

This commit is contained in:
shamoon
2023-03-29 14:35:48 -07:00
parent d4a3ba84e9
commit f46addf20a
6 changed files with 101 additions and 2 deletions
+6
View File
@@ -35,6 +35,12 @@ export default async function handler(req, res) {
});
}
if (type === "cputemp") {
return res.status(200).json({
cputemp: await si.cpuTemperature(),
});
}
return res.status(400).json({
error: "invalid type",
});