// FILE: src/middleware/errorHandler.js
// Error handling middleware
// - 404 Not Found handler
// - General error handler
// - Should be the last middleware added

export function notFound(_req, res, _next) {
  res.status(404).json({ error: "Not Found" });
}
export function errorHandler(err, _req, res, _next) {
  console.error(err);
  res.status(500).json({ error: "Internal Server Error" });
}
