mirror of
https://github.com/zadam/trilium.git
synced 2026-02-22 21:54:39 +01:00
fix(server): in-app help not working in dev mode
This commit is contained in:
parent
952dc634b4
commit
d8275e7ea8
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user