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

View File

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