aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web/app
diff options
context:
space:
mode:
authorMohamed Bassem <me@mbassem.com>2024-12-30 16:36:57 +0000
committerMohamed Bassem <me@mbassem.com>2024-12-30 16:56:23 +0000
commit5aee3404aa7f446a221a88c9b2cd529d1249e22f (patch)
tree492ec305ce84442fa520255934e8d4a7b0d638d3 /apps/web/app
parent5d8d2de567d8dd228699485d401c3a5b946114b0 (diff)
downloadkarakeep-5aee3404aa7f446a221a88c9b2cd529d1249e22f.tar.zst
fix(api): Return 201 from highlights creation and fix docs for PATCH /lists/[listId]
Diffstat (limited to 'apps/web/app')
-rw-r--r--apps/web/app/api/v1/highlights/route.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/web/app/api/v1/highlights/route.ts b/apps/web/app/api/v1/highlights/route.ts
index ebb96bae..a324d498 100644
--- a/apps/web/app/api/v1/highlights/route.ts
+++ b/apps/web/app/api/v1/highlights/route.ts
@@ -25,6 +25,6 @@ export const POST = (req: NextRequest) =>
bodySchema: zNewHighlightSchema,
handler: async ({ body, api }) => {
const resp = await api.highlights.create(body!);
- return { status: 200, resp };
+ return { status: 201, resp };
},
});