+
-

+
@@ -59,7 +85,23 @@
alert(`Login failed: ${error.message}`);
}
});
+
+ // Fetch version information from the API
+ async function fetchVersionInfo() {
+ const res = await fetch('/api/users/version');
+ if (res.ok) {
+ const data = await res.json();
+ // Update footer with the fetched version info
+ const footerText = `${data.author} - version: ${data.version} - ${data.message}`;
+ document.getElementById('footer-text').textContent = footerText;
+ } else {
+ document.getElementById('footer-text').textContent = 'Failed to load version info';
+ }
+ }
+
+ // Call the function to fetch and display the version info
+ fetchVersionInfo();
-