"use strict";
exports.__esModule = true;
exports.AsyncMiddleware = void 0;
var AsyncMiddleware = function AsyncMiddleware(fn) {
return function (req, res, next) {
Promise.resolve(fn(req, res, next)).catch(next);
};
};
exports.AsyncMiddleware = AsyncMiddleware;