CEC-3672 Use SUMS version instead of Version (#279)

This commit is contained in:
John Wu
2023-02-10 16:31:19 -08:00
committed by GitHub
parent 9cf84fc426
commit 0da2289f37
7 changed files with 79 additions and 52 deletions

View File

@@ -87,8 +87,8 @@ const updatesAPI = {
.catch(errorHandler);
},
getSoftwareVersions: async (token) => {
return fetch(`${API_ENDPOINT}/manifest/versions`, {
getSUMSVersions: async (token) => {
return fetch(`${API_ENDPOINT}/manifest/sums`, {
method: "GET",
headers: Object.assign(
{ "Content-Type": "application/json" },
@@ -99,8 +99,8 @@ const updatesAPI = {
.catch(errorHandler);
},
updateManifestVersion: async (id, version, token) => {
return fetch(`${API_ENDPOINT}/manifests/${id}/version`, {
updateSUMSVersion: async (id, version, token) => {
return fetch(`${API_ENDPOINT}/manifests/${id}/sums`, {
method: "PUT",
headers: Object.assign(
{ "Content-Type": "application/json" },
@@ -113,4 +113,4 @@ const updatesAPI = {
}
};
export default updatesAPI;
export default updatesAPI;