Validate ObjectId Middleware
Middleware to validate MongoDB ObjectId parameters in Express routes.
Installation Guide
Install the component using the servercn CLI:
npx servercn-cli@latest add validate-objectid Basic Implementation
Usage Example
Apply the middleware to any route that contains an :id parameter.