diff options
| author | Mohamed Bassem <me@mbassem.com> | 2024-12-30 16:36:57 +0000 |
|---|---|---|
| committer | Mohamed Bassem <me@mbassem.com> | 2024-12-30 16:56:23 +0000 |
| commit | 5aee3404aa7f446a221a88c9b2cd529d1249e22f (patch) | |
| tree | 492ec305ce84442fa520255934e8d4a7b0d638d3 /apps/web | |
| parent | 5d8d2de567d8dd228699485d401c3a5b946114b0 (diff) | |
| download | karakeep-5aee3404aa7f446a221a88c9b2cd529d1249e22f.tar.zst | |
fix(api): Return 201 from highlights creation and fix docs for PATCH /lists/[listId]
Diffstat (limited to 'apps/web')
| -rw-r--r-- | apps/web/app/api/v1/highlights/route.ts | 2 |
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 }; }, }); |
