Validating Requests With a Simple Middleware for Express

from blog yield code();, | ↗ original
There are two aspects of good API design: (1) a control of what it accepts, and (2) taking a brief look will help you understand what it does.