Skip to content

Commit ec61e50

Browse files
author
Peter Benjamin
committed
Pull projects data from Github api
1 parent 10d6e43 commit ec61e50

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

js/main.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ app.controller('MainCtrl', ['$scope', 'filterFilter', '$anchorScroll',
99
self.projects = projectsData;
1010

1111
$.ajax({
12-
url: 'https://raw.githubusercontent.com/devsecops/devsecops.github.io/master/data/projects.json',
12+
url: 'https://api.github.com/orgs/devsecops/repos',
13+
// url: 'https://raw.githubusercontent.com/devsecops/devsecops.github.io/master/data/projects.json',
1314
dataType: 'json',
1415
success: function(data) {
15-
var projects = data.AllProjects;
16+
var projects = data;
1617
$scope.currentPage = 1; //current page
1718
$scope.maxSize = 5; //pagination max size
1819
$scope.entryLimit = 36; //max rows for data table

0 commit comments

Comments
 (0)