This commit is contained in:
Mateo Körber Belmonte
2025-02-24 19:53:10 +01:00
parent a366984eb4
commit 194cf32747
5 changed files with 237 additions and 0 deletions
+4
View File
@@ -44,6 +44,10 @@ app.get('/', (req, res) => {
res.sendFile(path.join(__dirname, '../frontend/public', 'vote.html'));
});
app.get('/statistics', (req, res) => {
res.sendFile(path.join(__dirname, 'public', 'statistics.html'));
});
// Handle form submission
app.post('/submit', (req, res) => {
let date = new Date().toLocaleString('de-DE', { timeZone: 'Europe/Berlin' }).replace('"', '').replace(',', '');