index and create todos and lists

This commit is contained in:
2018-05-16 20:12:22 +03:00
parent fa053c63d5
commit 627e99f312
7 changed files with 92 additions and 5 deletions

3
asyncHelper.js Normal file
View File

@@ -0,0 +1,3 @@
module.exports = fn => (req, res, next) => {
Promise.resolve(fn(req, res, next)).catch(next);
};