def get_resource_mapping():
portal_types = get_portal_types()<EOL>resources = list(map(portal_type_to_resource, portal_types))<EOL>return dict(list(zip(resources, portal_types)))<EOL>
Map resources used in the routes to portal types

    :returns: Mapping of resource->portal_type
    :rtype: dict