remove last api url slash