progress; delete and list

This commit is contained in:
pauladamseniii
2023-10-17 12:11:53 -04:00
parent a404c4695f
commit 2fa9feb963
6 changed files with 141 additions and 14 deletions

View File

@@ -134,6 +134,18 @@ const updatesAPI = {
})
.then(fetchRespHandler)
.catch(errorHandler);
},
deleteSUMSVersionRxSwins: async (sums_version, rxswin, token) => {
return fetch(`${API_ENDPOINT}/manifest/sums/${sums_version}/rxswins/${rxswin}`, {
method: "DELETE",
headers: Object.assign(
{ "Content-Type": "application/json" },
getAuthHeaderOptions(token)
),
})
.then(fetchRespHandler)
.catch(errorHandler);
}
};