trim last slash from apiURL