remove example validation file

pull/9078/head
Agusti Fernandez Pardo 2022-03-24 23:19:13 +01:00
parent 84ab74b46a
commit e4d9f7bc7d
1 changed files with 0 additions and 19 deletions

View File

@ -1,19 +0,0 @@
import { NextApiRequest, NextApiResponse } from "next";
import { withValidation } from "next-validations";
import { z } from "zod";
const schema = z.object({
username: z.string().min(6),
});
const validate = withValidation({
schema,
type: "Zod",
mode: "body",
});
const handler = (req: NextApiRequest, res: NextApiResponse) => {
res.status(200).json(req.body);
};
export default validate(handler);