fix(server): in-app help not working in dev mode

This commit is contained in:
Elian Doran 2026-02-17 18:24:25 +02:00
parent 952dc634b4
commit d8275e7ea8
No known key found for this signature in database

View File

@ -38,8 +38,8 @@ async function register(app: express.Application) {
base: `/${assetUrlFragment}/`
});
app.use(`/${assetUrlFragment}/`, (req, res, next) => {
if (req.url.startsWith("/images/")) {
// Images are served as static assets from the server.
if (req.url.startsWith("/images/") || req.url.startsWith("/doc_notes/")) {
// Images and doc notes are served as static assets from the server.
next();
return;
}