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