Stage after merging with project files
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
export function asyncHandler(handler) {
|
||||
return async function wrappedHandler(req, res, next) {
|
||||
try {
|
||||
await handler(req, res, next);
|
||||
} catch (error) {
|
||||
next(error);
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user