Skip to content

Commit

Permalink
fix example hosting server worker files
Browse files Browse the repository at this point in the history
  • Loading branch information
jkasten2 committed Oct 26, 2023
1 parent 676c923 commit 93d15cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion express_webpack/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ app.get('/sdks/web/v16/:file', (req, res) => {
});

app.get('/:file', (req, res) => {
res.sendFile(sanitize(req.params.file));
res.sendFile(sanitize(req.params.file), { root: __dirname });
});

https.createServer(options, app).listen(4001, () => console.log("express_webpack: listening on port 4001 (https)"));
Expand Down

0 comments on commit 93d15cb

Please sign in to comment.