withMiddleware updated
This commit is contained in:
1 parent
0505c29eea
commit
950d0c4ffc
2 files changed
+6
-3
No files matched your search
@@ -1,3 +0,0 @@
|
||||
import { withCollection } from './withCollection'
|
||||
|
||||
export const withMiddleware = handler => withCollection(handler)
|
||||
@@ -0,0 +1,6 @@
|
||||
import { withCollection } from './withCollection'
|
||||
import { NextApiRequest, NextApiResponse } from 'next'
|
||||
|
||||
export type Handler = (req: NextApiRequest, res: NextApiResponse) => void
|
||||
|
||||
export const withMiddleware = (handler: Handler) => withCollection(handler)
|
||||
Reference in new issue
Block a user