I feel like i'm probably sending the fetch request incorrectly but I can't seem to get the route handler to be called.
app/api/getThing/route.ts
export async function GET(req: Request) {
console.log("hitting endpoint", req);
await fetch("https://jsonplaceholder.typicode.com/todos/1");
return new Response(JSON.stringify({ message: "Hello World!" }));
}
app/test/page.tsx
export default async function Page() {
const res = await fetch("http://localhost:3000/api/getThing", {
method: "GET",
});
return <pre>{JSON.stringify(await res.json(), null, 2)}</pre>;
}
it returns null data and I don't see any console logs.

