15 lines
433 B
TypeScript
15 lines
433 B
TypeScript
import { NextResponse } from 'next/server';
|
|
|
|
// Global variable to store the last raw Gemini response for easy debugging
|
|
let lastGeminiResponse: any = null;
|
|
|
|
export function setLastGeminiResponse(resp: any) {
|
|
lastGeminiResponse = resp;
|
|
}
|
|
|
|
export async function GET() {
|
|
return NextResponse.json({
|
|
lastResponse: lastGeminiResponse || "No requests captured yet since last deploy. Send a message from the desktop first."
|
|
});
|
|
}
|