$http.get(Routes.projects_path(params)).then(function(res) {
      $scope.page        = res.data.page;
      $scope.total_items = res.data.projects_count;
      $scope.projects    = res.data.projects;
    });