Skip to content

Commit

Permalink
Move fileUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
pozylon committed Dec 11, 2024
1 parent 0dbacff commit 95f8cf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/kitchensink/src/boot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ const start = async () => {
createGoogleWalletPass: console.log,
});

const fileUrl = new URL(import.meta.resolve('../static/index.html'));
app.use('/', async (req, res) => {
const fileUrl = new URL(import.meta.resolve('../static/index.html'));
res.status(200).sendFile(fileUrl.pathname);
});

Check failure

Code scanning / CodeQL

Missing rate limiting High

This route handler performs
a file system access
, but is not rate-limited.

Expand Down

0 comments on commit 95f8cf5

Please sign in to comment.