mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-10-08 03:08:21 +00:00
10 lines
No EOL
317 B
TypeScript
10 lines
No EOL
317 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}));
|
|
} |