mirror of
https://github.com/usatiuk/ustk-todolist.git
synced 2025-10-29 08:07:48 +01:00
index and create todos and lists
This commit is contained in:
3
asyncHelper.js
Normal file
3
asyncHelper.js
Normal file
@@ -0,0 +1,3 @@
|
||||
module.exports = fn => (req, res, next) => {
|
||||
Promise.resolve(fn(req, res, next)).catch(next);
|
||||
};
|
||||
Reference in New Issue
Block a user