mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-12 19:03:47 +00:00
docs: add initial documentation to external assets
This commit is contained in:
committed by
Carlos Valente
parent
b577057768
commit
76e12af116
@@ -76,7 +76,9 @@ app.use('/data', appRouter); // router for application data
|
||||
app.use('/api', integrationRouter); // router for integrations
|
||||
|
||||
// serve static external files
|
||||
app.use('/external/', express.static(publicDir.externalDir));
|
||||
app.use('/external', express.static(publicDir.externalDir));
|
||||
app.use('/user', express.static(publicDir.userDir));
|
||||
|
||||
// if the user reaches to the root, we show a 404
|
||||
app.use('/external', (req, res) => {
|
||||
res.status(404).send(`${req.originalUrl} not found`);
|
||||
|
||||
Reference in New Issue
Block a user