esLint
This commit is contained in:
@@ -20,6 +20,10 @@ export default async function handler(
|
||||
const data = await fs.readFile(filePath, "utf-8");
|
||||
res.status(200).send(data);
|
||||
} catch (error) {
|
||||
res.status(404).json({ error: "File not found" });
|
||||
console.error(
|
||||
"Fehler bei der Verarbeitung von kabelueberwachungAPIHandler:",
|
||||
error
|
||||
);
|
||||
res.status(500).json({ error: "Interner Serverfehler" });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user