add JSDoc comments because yes

This commit is contained in:
2026-09-25 17:14:56 +02:00
parent 9020356e62
commit 0a24035b27
62 changed files with 197 additions and 0 deletions
+3
View File
@@ -1,3 +1,6 @@
/**
* @file Prüft Anfrageinhalte mit einem übergebenen Validator und stellt die validierten Daten für Routen bereit.
*/
export function validateBody(validator) {
return (req, res, next) => {
const result = validator(req.body || {}, req);