[PR #368] [CLOSED] feat: add zod typed Route Handlers utility #915

Closed
opened 2026-02-26 19:31:01 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/368
Author: @G3root
Created: 9/11/2023
Status: Closed

Base: feat/refreshHead: zod-routes


📝 Commits (5)

📊 Changes

7 files changed (+288 additions, -176 deletions)

View changed files

📝 apps/web/package.json (+2 -1)
📝 apps/web/src/api/claim-plan/fetcher.ts (+5 -11)
apps/web/src/api/claim-plan/types.ts (+0 -37)
apps/web/src/app/api/claim-plan/route.ts (+142 -0)
apps/web/src/pages/api/claim-plan/index.ts (+0 -126)
📝 package-lock.json (+13 -1)
packages/lib/server-only/api/create-API.ts (+126 -0)

📄 Description

What does this PR do?

  • add a zod typed Route handler utility which returns a infered return type
  • use Route Handler for claim plan route

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/documenso/documenso/pull/368 **Author:** [@G3root](https://github.com/G3root) **Created:** 9/11/2023 **Status:** ❌ Closed **Base:** `feat/refresh` ← **Head:** `zod-routes` --- ### 📝 Commits (5) - [`9f8c002`](https://github.com/documenso/documenso/commit/9f8c00263dc8601064632783c34c4b86828bdeea) chore: add zod validation error - [`67a143a`](https://github.com/documenso/documenso/commit/67a143a1fefa1263fd650f65eb88be9af2903c72) feat: add typed route helper - [`270fe6b`](https://github.com/documenso/documenso/commit/270fe6b254fe1517ffaa64ac2f9ec296b039af44) fix: types - [`d81ab4b`](https://github.com/documenso/documenso/commit/d81ab4b48e12cefd4c142376f50647232423a557) fix: types - [`436f53e`](https://github.com/documenso/documenso/commit/436f53e5478de0e362726a8129d0e6cdb39d08c4) feat: replace route file ### 📊 Changes **7 files changed** (+288 additions, -176 deletions) <details> <summary>View changed files</summary> 📝 `apps/web/package.json` (+2 -1) 📝 `apps/web/src/api/claim-plan/fetcher.ts` (+5 -11) ➖ `apps/web/src/api/claim-plan/types.ts` (+0 -37) ➕ `apps/web/src/app/api/claim-plan/route.ts` (+142 -0) ➖ `apps/web/src/pages/api/claim-plan/index.ts` (+0 -126) 📝 `package-lock.json` (+13 -1) ➕ `packages/lib/server-only/api/create-API.ts` (+126 -0) </details> ### 📄 Description ## What does this PR do? - add a zod typed Route handler utility which returns a infered return type - use Route Handler for claim plan route --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 19:31:01 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#915
No description provided.