Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

270 B
Raw Blame
// Express 5 leaves req.body undefined when a request has no parsable body, so
// handlers destructuring it would throw a TypeError 500. Default it once here.
export function defaultRequestBody(req, _res, next) {
  if (req.body === undefined) req.body = {};
  next();
}