Skip to content

Commit 771a2bc

Browse files
committed
refactor: move newsletter to plain HTTP endpoint outside oRPC
oRPC's RPCHandler uses its own wire protocol, so plain POST requests from the website form were rejected with 422. Move the newsletter subscribe handler to a standalone HTTP endpoint handled directly in server.ts before the oRPC handler. Includes CORS preflight support, rate limiting, input validation, and 15 tests.
1 parent c55c122 commit 771a2bc

6 files changed

Lines changed: 287 additions & 528 deletions

File tree

src/contract/newsletter/index.ts

Lines changed: 0 additions & 86 deletions
This file was deleted.

0 commit comments

Comments
 (0)