mirror of
https://github.com/nfonteyne/octane-website.git
synced 2026-09-03 23:24:48 +02:00
first commit
This commit is contained in:
commit
244cdbedd7
44 changed files with 3386 additions and 0 deletions
3
src/lib/asyncHandler.js
Normal file
3
src/lib/asyncHandler.js
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
module.exports = function asyncHandler(fn) {
|
||||
return (req, res, next) => Promise.resolve(fn(req, res, next)).catch(next);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue