mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
moving canvas_note_share to src/share and add routes
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
const express = require('express');
|
||||
const path = require('path');
|
||||
|
||||
const shaca = require("./shaca/shaca");
|
||||
const shacaLoader = require("./shaca/shaca_loader");
|
||||
const shareRoot = require("./share_root");
|
||||
@@ -55,6 +58,8 @@ function register(router) {
|
||||
});
|
||||
}
|
||||
|
||||
router.use('/share/canvas_note_share.js', express.static(path.join(__dirname, 'canvas_note_share.js')));
|
||||
|
||||
router.get(['/share', '/share/'], (req, res, next) => {
|
||||
shacaLoader.ensureLoad();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user