This commit is contained in:
m5r
2021-08-01 22:03:49 +08:00
parent 7d34fcd48f
commit 1489f97c14
33 changed files with 147 additions and 313 deletions

View File

@ -13,10 +13,7 @@ const bodySchema = zod.object({
email: zod.string().email(),
});
export default async function subscribeToNewsletter(
req: BlitzApiRequest,
res: BlitzApiResponse<Response>,
) {
export default async function subscribeToNewsletter(req: BlitzApiRequest, res: BlitzApiResponse<Response>) {
if (req.method !== "POST") {
const statusCode = 405;
const apiError: ApiError = {