diff options
| author | Mohamed Bassem <me@mbassem.com> | 2024-12-27 19:21:43 +0000 |
|---|---|---|
| committer | Mohamed Bassem <me@mbassem.com> | 2024-12-27 19:34:04 +0000 |
| commit | 3f56389f55ef116f8cea17c15c684798fb942290 (patch) | |
| tree | 1a398accbcfc75674c5cc4970bc85fd27c637911 /apps/web/app/api/v1/utils/pagination.ts | |
| parent | 86d74e3f32dd5bccc8df195b55391e206df9a1c4 (diff) | |
| download | karakeep-3f56389f55ef116f8cea17c15c684798fb942290.tar.zst | |
feat: Add REST APIs for manipulating highlights. Fixes #620
Diffstat (limited to 'apps/web/app/api/v1/utils/pagination.ts')
| -rw-r--r-- | apps/web/app/api/v1/utils/pagination.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/web/app/api/v1/utils/pagination.ts b/apps/web/app/api/v1/utils/pagination.ts index 5ce9ac8f..1b438217 100644 --- a/apps/web/app/api/v1/utils/pagination.ts +++ b/apps/web/app/api/v1/utils/pagination.ts @@ -1,9 +1,7 @@ import { z } from "zod"; -import { - MAX_NUM_BOOKMARKS_PER_PAGE, - zCursorV2, -} from "@hoarder/shared/types/bookmarks"; +import { MAX_NUM_BOOKMARKS_PER_PAGE } from "@hoarder/shared/types/bookmarks"; +import { zCursorV2 } from "@hoarder/shared/types/pagination"; export const zPagination = z.object({ limit: z.coerce.number().max(MAX_NUM_BOOKMARKS_PER_PAGE).optional(), |
