Send boxVersion when requesting app listing

appstore uses this to filter out apps
This commit is contained in:
Girish Ramakrishnan
2015-02-16 15:16:17 -08:00
parent fd3aa3aa4e
commit dcf09b8814
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -604,7 +604,7 @@ angular.module('Application').service('AppStore', function ($http, Client) {
var that = this;
$http.get(Client.getConfig().apiServerOrigin + '/api/v1/appstore/apps').success(function (data, status) {
$http.get(Client.getConfig().apiServerOrigin + '/api/v1/appstore/apps', { params: { boxVersion: Client.getConfig().version } }).success(function (data, status) {
if (status !== 200) return callback(new AppStoreError(status, data));
// TODO remove old apps
+1 -1
View File
@@ -24,7 +24,7 @@ angular.module('Application').service('AppStore', function ($http, Client) {
var that = this;
$http.get(Client.getConfig().apiServerOrigin + '/api/v1/appstore/apps').success(function (data, status) {
$http.get(Client.getConfig().apiServerOrigin + '/api/v1/appstore/apps', { params: { boxVersion: Client.getConfig().version } }).success(function (data, status) {
if (status !== 200) return callback(new AppStoreError(status, data));
// TODO remove old apps