mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 19:36:12 +01:00
custom HTTP handler which triggers associated script notes WIP, #356
This commit is contained in:
@@ -63,6 +63,8 @@ app.use(favicon(__dirname + '/public/images/app-icons/win/icon.ico'));
|
||||
|
||||
require('./routes/routes').register(app);
|
||||
|
||||
require('./routes/custom').register(app);
|
||||
|
||||
// catch 404 and forward to error handler
|
||||
app.use((req, res, next) => {
|
||||
const err = new Error('Router not found for request ' + req.url);
|
||||
|
||||
Reference in New Issue
Block a user