mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
make :filename for GETing an image optional
This commit is contained in:
@@ -108,7 +108,7 @@ function register(router) {
|
||||
res.send(note.getContent());
|
||||
});
|
||||
|
||||
router.get('/share/api/images/:noteId/:filename', (req, res, next) => {
|
||||
router.get(['/share/api/images/:noteId/:filename', '/share/api/images/:noteId'], (req, res, next) => {
|
||||
const image = shaca.getNote(req.params.noteId);
|
||||
|
||||
if (!image) {
|
||||
|
||||
Reference in New Issue
Block a user