Add app configure graphs view

This commit is contained in:
Johannes Zellner
2025-03-07 11:54:43 +01:00
parent 05a685fb24
commit 27ecde2f17
4 changed files with 191 additions and 5 deletions
+11
View File
@@ -350,6 +350,17 @@ function create() {
if (result.status !== 202) return [result];
return [null];
},
async graphs(id, fromMinutes) {
let result;
try {
result = await fetcher.get(`${API_ORIGIN}/api/v1/apps/${id}/graphs`, { fromMinutes, access_token: accessToken });
} catch (e) {
return [e];
}
if (result.status !== 200) return [result];
return [null, result.body];
},
};
}