Commit 771a2bc
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
This file was deleted.
0 commit comments