api: fix background image route
This commit is contained in:
@@ -2296,7 +2296,7 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
|
||||
};
|
||||
|
||||
Client.prototype.getBackgroundImageUrl = function () {
|
||||
return client.apiOrigin + '/api/v1/profile/backgroundImage?access_token=' + token + '&bustcache=' + Date.now();
|
||||
return client.apiOrigin + '/api/v1/profile/background_image?access_token=' + token + '&bustcache=' + Date.now();
|
||||
};
|
||||
|
||||
Client.prototype.setBackgroundImage = function (backgroundImage, callback) {
|
||||
@@ -2309,7 +2309,7 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
|
||||
transformRequest: angular.identity
|
||||
};
|
||||
|
||||
post('/api/v1/profile/backgroundImage', fd, config, function (error, data, status) {
|
||||
post('/api/v1/profile/background_image', fd, config, function (error, data, status) {
|
||||
if (error) return callback(error);
|
||||
if (status !== 202) return callback(new ClientError(status, data));
|
||||
callback(null);
|
||||
|
||||
Reference in New Issue
Block a user