P2: express.json() middleware runs on all requests including GET #14
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: P2 — Medium
File: server/index.js ~line 256
Problem: express.json() middleware runs for all requests including GET /api/health. GET requests with body may cause unexpected behavior.
Impact: Minor — violates REST conventions, wastes minimal resources.
Fix: Move express.json() to only apply to POST routes, or use express.json() conditionally.