Fix routes for POST,PUT request with nginx