add trailing slashes to api endpoints