Skip to content

Commit

Permalink
Minor tweaks post-PR merge
Browse files Browse the repository at this point in the history
  • Loading branch information
steinbro committed Jun 27, 2024
1 parent 79d71ad commit 91394a3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 92 deletions.
86 changes: 1 addition & 85 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"axios": "^1.7.2",
"chai": "^5.1.0",
"express": "^4.19.2",
"http-proxy-middleware": "^3.0.0",
"leaflet": "^1.9.4",
"mocha": "^10.4.0"
},
Expand Down
7 changes: 1 addition & 6 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const proxyHandler = async (req, res) => {

const response = await axios.get(targetUrl, {
headers: {
"User-Agent": "YourNewUserAgent",
"User-Agent": "soundscape-web-client/0.1",
},
responseType: "arraybuffer",
});
Expand All @@ -40,11 +40,6 @@ const proxyHandler = async (req, res) => {
// Route for /tiles
app.use("/tiles/*", proxyHandler);

// Fallback to serve the index.html for single-page applications
app.get("*", (req, res) => {
res.sendFile(path.join(__dirname, "index.html"));
});

app.listen(port, () => {
console.log(`Server is running on http://localhost:${port}`);
});

0 comments on commit 91394a3

Please sign in to comment.