diff --git a/pages/api/users/valid.ts b/pages/api/users/valid.ts deleted file mode 100644 index 81a4b3c94a..0000000000 --- a/pages/api/users/valid.ts +++ /dev/null @@ -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);