mirror of
https://github.com/Unleash/unleash.git
synced 2026-10-14 08:19:48 +00:00
fix: catch all route only for baseUriPath (#825)
* fix: catch all route only for baseUriPath * Update src/lib/app.ts Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com> Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>
This commit is contained in:
committed by
GitHub
parent
e22c7c8b37
commit
dfda721ddb
+2
-1
@@ -126,9 +126,10 @@ export default function getApp(
|
||||
res.send(indexHTML);
|
||||
});
|
||||
|
||||
app.get('*', (req, res) => {
|
||||
app.get(`${baseUriPath}/*`, (req, res) => {
|
||||
if (req.path.includes('api')) {
|
||||
res.status(404).send();
|
||||
return;
|
||||
}
|
||||
|
||||
res.send(indexHTML);
|
||||
|
||||
Reference in New Issue
Block a user