"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.expressJackx = void 0;
const serializer_1 = require("./serializer");
const expressJackx = (req, res, next) => {
    res.jackson = function (status, obj) {
        return res.status(status).send((0, serializer_1.serialize)(obj));
    };
    next();
};
exports.expressJackx = expressJackx;
//# sourceMappingURL=middleware.js.map