A few fixes to containers and apps, also added remove app

This commit is contained in:
2026-01-01 17:39:49 +01:00
parent 0439ee7889
commit 4f7376b9b0
9 changed files with 123 additions and 57 deletions
+11
View File
@@ -72,3 +72,14 @@ export async function setEnv(appId: string, variables: EnvVariable[]) {
);
});
}
export async function removeApp(appId: string) {
const nodes = await getNodes();
nodes.forEach(async (n) => {
await axios.delete(`http://${n.ip}:3000/api/applications`, {
params: { appId },
headers: { Authorization: `ApiKey ${n.key}` },
});
});
}