what are you doing big bro

This commit is contained in:
quoije
2025-02-05 20:59:33 -05:00
parent 735793e69f
commit 34870c2f53
9 changed files with 56 additions and 42 deletions
+16
View File
@@ -0,0 +1,16 @@
// Fetch version information from the API
async function fetchVersionInfo() {
const res = await fetch('/api/version');
if (res.ok) {
const data = await res.json();
// Update footer with the fetched version info
const footerText = `${data.date} - ${data.version} - ${data.message}`;
document.getElementById('footer-text').textContent = footerText;
} else {
document.getElementById('footer-text').textContent = '';
}
}
// Call the function to fetch and display the version info
// Doesn't work on prod, will fix later
fetchVersionInfo();