2022-03-26 23:58:22 +00:00
|
|
|
import { withValidation } from "next-validations";
|
|
|
|
import { z } from "zod";
|
|
|
|
|
2022-03-30 12:17:55 +00:00
|
|
|
const schemaWebhook = z.object({}).strict();
|
2022-03-26 23:58:22 +00:00
|
|
|
|
2022-03-27 00:19:49 +00:00
|
|
|
const withValidWebhook = withValidation({
|
|
|
|
schema: schemaWebhook,
|
2022-03-26 23:58:22 +00:00
|
|
|
type: "Zod",
|
|
|
|
mode: "body",
|
|
|
|
});
|
|
|
|
|
2022-03-27 00:19:49 +00:00
|
|
|
export { schemaWebhook, withValidWebhook };
|