diff options
| author | codetorso <[email protected]> | 2024-06-29 20:34:48 +0530 |
|---|---|---|
| committer | codetorso <[email protected]> | 2024-06-29 20:34:48 +0530 |
| commit | 6294f5fa3384f82f51631e43685bba0e49abab4f (patch) | |
| tree | 7382bfd7aee339f5e444f69cbb60bfe9bed580d6 /apps/web/app/api | |
| parent | user canvas (2/2) (diff) | |
| download | supermemory-6294f5fa3384f82f51631e43685bba0e49abab4f.tar.xz supermemory-6294f5fa3384f82f51631e43685bba0e49abab4f.zip | |
fix typescript errors
Diffstat (limited to 'apps/web/app/api')
| -rw-r--r-- | apps/web/app/api/canvas/route.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/web/app/api/canvas/route.ts b/apps/web/app/api/canvas/route.ts new file mode 100644 index 00000000..f6af5109 --- /dev/null +++ b/apps/web/app/api/canvas/route.ts @@ -0,0 +1,10 @@ +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})); +}
\ No newline at end of file |