I figured this out with the help of Martin (maker of Restangular) and MongoLab support. Turns out I needed to do a customGet with Restangular and use the q: parameter to satisfy MongoLab. The final piece of code is a change on one line:
return Restangular.all('sites').customGET("", {q: { "sitename" : $route.current.params.sitename } });
so, the whole section would look like this:
.when('/sites/:sitename', {
templateUrl: 'views/site.html',
controller: 'SiteCtrl',
resolve: {
site: function(Restangular, $route){
return Restangular.all('sites').customGET("", {q: { "sitename" : $route.current.params.sitename } });
}
}
})
Hope this helps you.
Scott