add to middlewares withCollection (unstable)

This commit is contained in:
tmshv committed 2019-10-14 17:45:00 +03:00
1 parent c77dc74965
commit 0c41bffb75
2 files changed
+24 -3

No files matched your search

+3 -3
View File
@@ -1,3 +1,3 @@
export const withMiddleware = handler => async (req, res) => {
return handler(req, res);
};
import { withCollection } from './withCollection'
export const withMiddleware = handler => withCollection(handler)