16 lines
474 B
TypeScript
Raw Permalink Normal View History

2023-10-13 09:23:11 -04:00
import { NextResponse } from "next/server";
function handler() {
2023-10-25 08:49:52 -04:00
const response = NextResponse.json({
2023-10-13 09:23:11 -04:00
names: {
zach: "17717ad4d20e2a425cda0a2195624a0a4a73c4f6975f16b1593fc87fa46f2d58",
2023-11-01 07:40:22 -04:00
_: "4fdf8b2c8bb34eff14f215fcdcf36dfd89120a473a5b0c993c1f48ae0252f147",
2023-10-13 09:23:11 -04:00
},
2023-10-25 08:49:52 -04:00
});
response.headers.set("Content-Type", "application/json");
response.headers.set("Access-Control-Allow-Origin", "*");
return response;
2023-10-13 09:23:11 -04:00
}
export { handler as GET, handler as POST };