feat: add logs
This commit is contained in:
@@ -2,6 +2,9 @@ import prisma from '@prisma/prisma';
|
|||||||
import { NextRequest, NextResponse } from 'next/server';
|
import { NextRequest, NextResponse } from 'next/server';
|
||||||
|
|
||||||
export async function POST(request: NextRequest) {
|
export async function POST(request: NextRequest) {
|
||||||
|
const body = await request.json();
|
||||||
|
console.log('request', request, 'body', body);
|
||||||
|
|
||||||
const { email } = await request.json();
|
const { email } = await request.json();
|
||||||
|
|
||||||
if (email) {
|
if (email) {
|
||||||
|
|||||||
Reference in New Issue
Block a user