api: fix background image route

This commit is contained in:
Girish Ramakrishnan
2023-09-13 20:08:41 +05:30
parent c376f2473e
commit 348eb16cef
3 changed files with 5 additions and 5 deletions

View File

@@ -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);