Skip to content

Commit

Permalink
reduced again to one index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
martinheppner committed Sep 9, 2024
1 parent f6c4a9f commit 53007ed
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,28 +49,5 @@ app.use((req, res, next) => {
});

app.get([ '/*' ], function(req, res) {
var host = req.get('host');

if(host.indexOf('zuugle.si') >= 0) {
res.sendFile(path.join(__dirname, '../app/index-si.html'));
}
else if(host.indexOf('zuugle.it') >= 0) {
res.sendFile(path.join(__dirname, '../app/index-it.html'));
}
else if(host.indexOf('zuugle.fr') >= 0) {
res.sendFile(path.join(__dirname, '../app/index-fr.html'));
}
else if(host.indexOf('zuugle.de') >= 0) {
res.sendFile(path.join(__dirname, '../app/index-de.html'));
}
else if(host.indexOf('zuugle.ch') >= 0) {
res.sendFile(path.join(__dirname, '../app/index-ch.html'));
}
else if(host.indexOf('zuugle.li') >= 0) {
res.sendFile(path.join(__dirname, '../app/index-li.html'));
}
else {
res.sendFile(path.join(__dirname, '../app/index.html'));
}

res.sendFile(path.join(__dirname, '../app/index.html'));
});

0 comments on commit 53007ed

Please sign in to comment.