mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
support for backend jobs and other script API changes
This commit is contained in:
@@ -17,6 +17,12 @@ router.post('/exec', auth.checkApiAuth, wrap(async (req, res, next) => {
|
||||
});
|
||||
}));
|
||||
|
||||
router.post('/job', auth.checkApiAuth, wrap(async (req, res, next) => {
|
||||
await script.setJob(req.body);
|
||||
|
||||
res.send({});
|
||||
}));
|
||||
|
||||
router.get('/startup', auth.checkApiAuth, wrap(async (req, res, next) => {
|
||||
const noteIds = await attributes.getNoteIdsWithAttribute("run_on_startup");
|
||||
const repository = new Repository(req);
|
||||
|
||||
Reference in New Issue
Block a user