This commit is contained in:
Timothy Jaeryang Baek
2025-02-03 15:20:27 -08:00
parent db0ff839dd
commit e3214d08b5
2 changed files with 27 additions and 20 deletions

View File

@@ -880,13 +880,14 @@ export const getChangelog = async () => {
return res;
};
export const getVersionUpdates = async () => {
export const getVersionUpdates = async (token: string) => {
let error = null;
const res = await fetch(`${WEBUI_BASE_URL}/api/version/updates`, {
method: 'GET',
headers: {
'Content-Type': 'application/json'
'Content-Type': 'application/json',
Authorization: `Bearer ${token}`
}
})
.then(async (res) => {