Empty object on delete req.body in Express.js
Instead of just using the removedDocId
string as the second argument, you could use it in the data
property of the options object instead.
export const sendRemoved = (removedDocId) => async dispatch => { const res = await axios.delete('/api/deletedoc', { data: { removedDocId } });}