blob: fb1486e483c8885a0776e740f66027eddf1f46f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
var app = angular.module('ciat', []);
app.config(['$httpProvider', function($httpProvider) {
$httpProvider.defaults.useXDomain = true;
delete $httpProvider.defaults.headers.common['X-Requested-With'];
}
]);
app.controller('VisualisationController', ['$scope', '$http',
function($scope, $http) {
$scope.builders = $http.get('http://ciat.baserock.org:8010/json/builders');
}
]);
|