mirror of
https://github.com/kevin-DL/complete-node-bootcamp.git
synced 2026-01-14 20:24:45 +00:00
Initial commit 🚀
This commit is contained in:
5
4-natours/after-section-10/utils/catchAsync.js
Normal file
5
4-natours/after-section-10/utils/catchAsync.js
Normal file
@@ -0,0 +1,5 @@
|
||||
module.exports = fn => {
|
||||
return (req, res, next) => {
|
||||
fn(req, res, next).catch(next);
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user