mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
clean up code
This commit is contained in:
@@ -30,10 +30,7 @@ app.use(express.urlencoded({extended: false}));
|
||||
app.use(cookieParser());
|
||||
app.use(express.static(path.join(__dirname, 'public')));
|
||||
app.use('/libraries', express.static(path.join(__dirname, '..', 'libraries')));
|
||||
/**
|
||||
* FIXME: is it (~~crazy~~) insecure to expose node_modules globally without auth?
|
||||
* without out is required for excalidraw-view mode in shared notes
|
||||
*/
|
||||
// node_modules required for excalidraw-view mode in shared notes
|
||||
app.use('/node_modules', express.static(path.join(__dirname, '..', 'node_modules')));
|
||||
app.use('/images', express.static(path.join(__dirname, '..', 'images')));
|
||||
const sessionParser = session({
|
||||
|
||||
Reference in New Issue
Block a user