feat: changelog.md

This commit is contained in:
Timothy J. Baek 2024-02-23 00:30:26 -08:00
parent 9b27d952f8
commit 9f950aea9c
13 changed files with 237 additions and 154 deletions

View file

@ -21,3 +21,25 @@ export const getBackendConfig = async () => {
return res;
};
export const getChangelog = async () => {
let error = null;
const res = await fetch(`${WEBUI_BASE_URL}/api/changelog`, {
method: 'GET',
headers: {
'Content-Type': 'application/json'
}
})
.then(async (res) => {
if (!res.ok) throw await res.json();
return res.json();
})
.catch((err) => {
console.log(err);
error = err;
return null;
});
return res;
};