diff options
Diffstat (limited to 'apps/web/app/api/v1/bookmarks')
| -rw-r--r-- | apps/web/app/api/v1/bookmarks/[bookmarkId]/highlights/route.ts | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/apps/web/app/api/v1/bookmarks/[bookmarkId]/highlights/route.ts b/apps/web/app/api/v1/bookmarks/[bookmarkId]/highlights/route.ts new file mode 100644 index 00000000..4e1f87a0 --- /dev/null +++ b/apps/web/app/api/v1/bookmarks/[bookmarkId]/highlights/route.ts @@ -0,0 +1,18 @@ +import { NextRequest } from "next/server"; +import { buildHandler } from "@/app/api/v1/utils/handler"; + +export const dynamic = "force-dynamic"; + +export const GET = ( + req: NextRequest, + params: { params: { bookmarkId: string } }, +) => + buildHandler({ + req, + handler: async ({ api }) => { + const resp = await api.highlights.getForBookmark({ + bookmarkId: params.params.bookmarkId, + }); + return { status: 200, resp }; + }, + }); |
