add to middlewares withCollection (unstable)
This commit is contained in:
1 parent
c77dc74965
commit
0c41bffb75
2 files changed
+24
-3
No files matched your search
@@ -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)
|
||||
Reference in new issue
Block a user