next-api-compose icon indicating copy to clipboard operation
next-api-compose copied to clipboard

🧬 Simple, dependency free, error aware and powerful utility to compose chain of multiple middleware into one Next.js API Route.

Results 2 next-api-compose issues
Sort by recently updated
recently updated
newest added

Suggestion: ```typescript import { compose } from 'next-api-compose' export default compose([preWithBar, preWithFoo], [postWithBar, postWithFoo], (request, response) => { const { foo, bar } = request response.status(200).json({ foo, bar }) })...

enhancement
target: pages router

It should be nice if manual interceptor for `request` and `response` objects for each middleware in chain could be provided in `NextApiComposeOptions`. Can be useful for debugging or very edgy...

enhancement
hacktoberfest