fixed DELETE to /api/post to resolve instead of timing out