feat: ability to change logo in frontend

This commit is contained in:
Elias Schneider
2023-03-08 14:47:41 +01:00
parent 8f71fd3435
commit 8403d7e14d
13 changed files with 596 additions and 45 deletions

View File

@@ -46,6 +46,12 @@ const isNewReleaseAvailable = async () => {
return response.tag_name.replace("v", "") != process.env.VERSION;
};
const changeLogo = async (file: File) => {
const form = new FormData();
form.append("file", file);
await api.post("/configs/admin/logo", form);
};
export default {
list,
getByCategory,
@@ -54,4 +60,5 @@ export default {
finishSetup,
sendTestEmail,
isNewReleaseAvailable,
changeLogo,
};