"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.methodsValidator = void 0;
const methodsValidator = (methods) => {
    return (req, res, next) => {
        if (methods.includes(req.method) !== true) {
            return res.sendStatus(405);
        }
        return next();
    };
};
exports.methodsValidator = methodsValidator;
//# sourceMappingURL=express.js.map