"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function isPost(req, res) {
    if ((req === null || req === void 0 ? void 0 : req.method) !== "POST") {
        res === null || res === void 0 ? void 0 : res.status(404).json({ message: "must use a POST request" });
        return false;
    }
    return true;
}
exports.default = isPost;
//# sourceMappingURL=is-post.js.map