mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-05-05 07:10:13 +00:00
10 lines
316 B
TypeScript
10 lines
316 B
TypeScript
export function GET(req: Request) {
|
|
const id = new URL(req.url).searchParams.get("id");
|
|
return new Response(JSON.stringify(id));
|
|
}
|
|
|
|
export async function POST(req: Request) {
|
|
const body = await req.json();
|
|
const id = new URL(req.url).searchParams.get("id");
|
|
return new Response(JSON.stringify({ body, id }));
|
|
}
|