- withSwagger(__namedParameters?): (() => ((_req: NextApiRequest, res: NextApiResponse) => void))
Returns (() => ((_req: NextApiRequest, res: NextApiResponse) => void))
- (): ((_req: NextApiRequest, res: NextApiResponse) => void)
Returns ((_req: NextApiRequest, res: NextApiResponse) => void)
- (_req, res): void
Parameters
- _req: NextApiRequest
- res: NextApiResponse
Returns void
WithSwagger middleware