def slack_url(base_url, endpoint):
    """ Return slack endpoint by concatinating the base_url if required """
    base_url = base_url.strip('/')
    endpoint = endpoint.strip('/')
    if base_url in endpoint:
        return endpoint
    return base_url + '/' + endpoint
