nextjs-middleware-validation
Validation middlewares for Next.js API routes with Yup.
Installation
Clone this repo and run yarn install
.
Test
- Run
yarn dev
to start the development server. - Then make requests to
http://localhost:3000/api/posts
Validation middlewares for Next.js API routes with Yup.
Validation middlewares for Next.js API routes with Yup.
Clone this repo and run yarn install
.
yarn dev
to start the development server.http://localhost:3000/api/posts
Validation middlewares for Next.js API routes with Yup.