diff --git a/public/index.html b/public/index.html index c348d5e..a2f9ffe 100644 --- a/public/index.html +++ b/public/index.html @@ -5,13 +5,34 @@ Pool Oscars 2025 + -
-
+
+
- +
@@ -26,6 +47,11 @@

Pas de compte? Enregistrez-vous

+ + +
+ +
@@ -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(); - + \ No newline at end of file diff --git a/routes/users.js b/routes/users.js index 93e42e1..08e3dfa 100644 --- a/routes/users.js +++ b/routes/users.js @@ -7,6 +7,10 @@ const axios = require("axios"); const router = express.Router(); +// Set password for verification + +const woof = process.env.DOG_NAMES ? process.env.DOG_NAMES.split(",") : []; + // Fetch movie details from OMDb API async function fetchMovieDetailsFromOmdb(imdb_id) { const apiKey = process.env.OMDB_API; // Replace with your actual OMDb API key