add a log
Browse files- app/api/ask/route.ts +1 -0
app/api/ask/route.ts
CHANGED
|
@@ -216,6 +216,7 @@ export async function POST(request: NextRequest) {
|
|
| 216 |
}
|
| 217 |
|
| 218 |
export async function PUT(request: NextRequest) {
|
|
|
|
| 219 |
const user = await isAuthenticated();
|
| 220 |
if (user instanceof NextResponse || !user) {
|
| 221 |
return NextResponse.json({ message: "Unauthorized" }, { status: 401 });
|
|
|
|
| 216 |
}
|
| 217 |
|
| 218 |
export async function PUT(request: NextRequest) {
|
| 219 |
+
console.log("PUT request received");
|
| 220 |
const user = await isAuthenticated();
|
| 221 |
if (user instanceof NextResponse || !user) {
|
| 222 |
return NextResponse.json({ message: "Unauthorized" }, { status: 401 });
|