mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-15 20:33:47 +00:00
feat: minimal demo page (#644)
* minimal * eslint-browser * dynamic port, reconnect socket, msTo string without Date * 404 on external not found
This commit is contained in:
committed by
GitHub
parent
5a2f711eab
commit
8756b396cc
@@ -65,6 +65,9 @@ app.use('/playback', playbackRouter);
|
||||
|
||||
// serve static - css
|
||||
app.use('/external', express.static(externalsStartDirectory));
|
||||
app.use('/external', (req, res) => {
|
||||
res.status(404).send(`${req.originalUrl} not found`);
|
||||
});
|
||||
|
||||
// serve static - react, in dev/test mode we fetch the React app from module
|
||||
const reactAppPath = join(currentDirectory, resolvedPath());
|
||||
|
||||
Reference in New Issue
Block a user