Skip to content

Commit

Permalink
chore: move usage of lusca csrf before serving of files with .get()
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieSlome committed Mar 26, 2024
1 parent 22ac6cb commit 876611d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/service/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ const start = async () => {
app.use(express.urlencoded({ extended: true }));
app.use('/', routes);
app.use('/', express.static(absBuildPath));
app.use(lusca.csrf());
app.get('/*', (req, res) => {
res.sendFile(path.join(`${absBuildPath}/index.html`));

Check warning on line 55 in src/service/index.js

View check run for this annotation

Codecov / codecov/patch

src/service/index.js#L55

Added line #L55 was not covered by tests
});
app.use(lusca.csrf());

_httpServer.listen(uiPort);

Expand Down

0 comments on commit 876611d

Please sign in to comment.