eduardomoroni/trading-card-manager

View on GitHub
packages/backend/functions/src/presentation/rest/routes/notFound.js

Summary

Maintainability
A
0 mins
Test Coverage
function notFound(req, res, next) {
  let error = new Error('Route not found');
  error.status = 404;
  res.status(error.status).json(error);
  next(error);
}

module.exports = { notFound };