2022-03-26 23:58:22 +00:00
|
|
|
import { withValidation } from "next-validations";
|
|
|
|
import { z } from "zod";
|
|
|
|
|
2022-03-27 00:19:49 +00:00
|
|
|
const schemaMembership = z
|
|
|
|
.object({})
|
2022-03-27 13:15:46 +00:00
|
|
|
.strict();
|
2022-03-27 00:19:49 +00:00
|
|
|
const withValidMembership = withValidation({
|
|
|
|
schema: schemaMembership,
|
2022-03-26 23:58:22 +00:00
|
|
|
type: "Zod",
|
|
|
|
mode: "body",
|
|
|
|
});
|
|
|
|
|
2022-03-27 00:19:49 +00:00
|
|
|
export { schemaMembership, withValidMembership };
|