routes: {
'/partials': 'src/partials',
'/config.json': 'src/config.json',
+ '/contributors.txt': 'src/contributors.txt',
'/bower_components': './bower_components',
'/js/src': '../js/src',
'/js': './js'
.controller('ContributorsController', ['$scope', '$http',
'toastr',
function($scope, $http, toastr) {
- $http.get(window.location.pathname + '/contributors.txt')
+ var url = window.location.origin + window.location.pathname;
+ $http.get(url + 'contributors.txt')
.success(function(data) {
var contributors = [];
});
}
]);
-})();
\ No newline at end of file
+})();