We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2eda579 commit 1baeaaeCopy full SHA for 1baeaae
1 file changed
index.js
@@ -58,8 +58,8 @@ app.use(function(req, res, next){
58
next();
59
}));
60
});
61
-//Handle all paths
62
-app.all('*', (req, res) => {
+//Handle all paths. This /{*splat} is new Express 5 path syntax. https://expressjs.com/en/guide/migrating-5.html#path-syntax
+app.all('/{*splat}', (req, res) => {
63
64
if(process.env.OVERRIDE_RESPONSE_BODY_FILE_PATH){
65
// Path is relative to current directory
0 commit comments