def get_resource(request):
    """ Get the resource being requested
    """
    path = request.path
    path = [x for x in path.split('/') if x]
    if path:
        return path[-1]
    else:
        return None