esLint
This commit is contained in:
@@ -26,6 +26,7 @@ export default async function handler(
|
||||
const data = await fs.readFile(filePath, "utf-8");
|
||||
res.status(200).json(JSON.parse(data));
|
||||
} catch (error) {
|
||||
console.error("Error processing tdmDataAPIHandler:", error);
|
||||
res.status(404).json({ error: "File not found" });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user