Fixed server side bug logo issue

This commit is contained in:
eetnaviation
2024-03-27 17:14:22 +02:00
parent 6f32e6e198
commit 6d76b7c44a
2 changed files with 5 additions and 2 deletions

View File

@ -5,7 +5,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TLT Location Finder</title>
<link rel="icon" type="image/x-icon" href="./velendeulogo.png">
<link rel="icon" type="image/x-icon" href="/velendeulogo.png">
<style>
#map {
height: 1000px;
@ -16,7 +16,7 @@
<body>
<picture>
<img src="./velendeulogo.png" alt="velendeulogo" style="width:auto";>
<img src="/velendeulogo.png" alt="velendeulogo" style="width:auto";>
</picture>
<h2>TLT Location Finder</h2>
<form id="search-form">

View File

@ -27,6 +27,9 @@ app.get('/', (req, res) => {
//index.html
res.sendFile(__dirname + '/client/index.html');
});
app.get('/velendeulogo.png', (req, res) => {
res.sendFile(__dirname + '/client/velendeulogo.png');
});
server.listen(serverPort, () => {
console.log("Apache server initalized...");