Add 204 response code to endpoints receiving POST requests.
This commit is contained in:
parent
da4f2fcbf6
commit
e138b3f8d1
@ -147,7 +147,7 @@ app.post('/core/edit/:id', function(req, res){
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
res.redirect('https://particle.kaplon.us/');
|
res.redirect(204, 'https://particle.kaplon.us/');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -234,6 +234,7 @@ app.post('/', function(req, res){
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
//res.send(JSON.stringify(req.body, null, 4));
|
//res.send(JSON.stringify(req.body, null, 4));
|
||||||
|
res.status(204).send('POST received');
|
||||||
});
|
});
|
||||||
|
|
||||||
app.listen(3000, function() {
|
app.listen(3000, function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user