Use a $resource to load the routine data from the REST API