personal-site/app/api/test/route.ts
2023-07-25 14:43:08 +01:00

8 lines
199 B
TypeScript

import { NextResponse } from "next/server";
export async function GET(request: Request, context?: {}) {
console.log(request.headers);
return NextResponse.json({ name: "Benjamin Toby" });
}