Add restore route in provision model

This commit is contained in:
Johannes Zellner
2025-05-06 11:54:02 +02:00
parent 63f9e26b2e
commit 7aca2a1b36
2 changed files with 14 additions and 3 deletions
+11
View File
@@ -57,6 +57,17 @@ function create() {
error = e;
}
if (error || result.status !== 200) return [error || result];
return [null];
},
async restore(data) {
let error, result;
try {
result = await fetcher.post(`${API_ORIGIN}/api/v1/provision/restore`, data);
} catch (e) {
error = e;
}
if (error || result.status !== 200) return [error || result];
return [null];
},