Kode status middleware ekspres selalu 200

wrap your code with event

res.on('finish', () => {
// do some thing here

})
Restu Wahyu Saputra