angular
  .module('app')
  .factory('apiService', [
    '$http',
    function($http) {
      return {
        client: $http.get('/api/bower'),
        server: $http.get('/api/package')
      };
    }
  ])
;

angular
  .module('app')
  .factory('apiService', [
    '$http',
    function($http) {
      return {
        client: $http.get('../bower.json'),
        server: $http.get('../package.json')
      };
    }
  ])
;

Use relative paths for bower/package.json
Use relative paths for bower/package.json
