mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-03 21:29:59 -05:00
Displaying name and version in footer.
This commit is contained in:
parent
3821722d0c
commit
8170313dd7
5 changed files with 35 additions and 2 deletions
|
|
@ -385,3 +385,9 @@ export async function deleteFile(file) {
|
|||
let body = {file: file};
|
||||
await apiPost(`${API_URI}/files/delete`, body);
|
||||
}
|
||||
|
||||
export async function getVersion() {
|
||||
let response = await apiGet(`${API_URI}/settings`);
|
||||
let data = await response.json();
|
||||
return data['version'];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue