app.use((req, res, next) => {
const originalEnd = res.end;
if (req.method !== "GET" && res.statusCode < 400) {
res.end = function (chunk, encoding) {
originalEnd.call(this, chunk, encoding);
mainBuilder(); // function i want to execute
};
}
next();
});
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)