Call http.del in httpDelete function

This commit is contained in:
Žiga Vidic
2016-06-26 20:28:35 -07:00
committed by GitHub
parent 84bee19120
commit c2c32350ab
+1 -1
View File
@@ -388,7 +388,7 @@ function postJson (state, action, send) {
function httpDelete (state, action, send) {
const body = { foo: 'bar' }
http.post('/my-endpoint', { json: body }, function (err, res, body) {
http.del('/my-endpoint', { json: body }, function (err, res, body) {
if (err) return send('app:error', { payload: err.message })
if (res.statusCode !== 200) {
return send('app:error', { payload:'something went wrong' })