diff options
| author | Jakob L. Kreuze <zerodaysfordays@sdf.org> | 2022-08-28 17:55:06 -0400 |
|---|---|---|
| committer | Jakob L. Kreuze <zerodaysfordays@sdf.org> | 2022-08-28 17:55:37 -0400 |
| commit | 19db1261567273934112bd2e751157f19f384521 (patch) | |
| tree | fb828e9d05335cfcaf28e9ea8db6eb9bb808e349 /haunt | |
| parent | 4c341b4576b2a6e663c764ced86c54986da5a646 (diff) | |
[gallery] Use faster static handler route for serving images
Diffstat (limited to 'haunt')
| -rw-r--r-- | haunt/static/js/gallery.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/haunt/static/js/gallery.js b/haunt/static/js/gallery.js index 29ed652..d7ed13b 100644 --- a/haunt/static/js/gallery.js +++ b/haunt/static/js/gallery.js @@ -50,9 +50,9 @@ if (!urlParams.get("g")) { for (let image of response.images) { elem = document.createElement("a"); - elem.href = `${location.protocol}//${location.host}/api/gallery/image?name=${image.filename}` + elem.href = `${location.protocol}//${location.host}/static-ext/${image.filename}`; let thumb = document.createElement("img"); - thumb.src = `${location.protocol}//${location.host}/api/gallery/image?name=${image.thumbnail}`; + thumb.src = `${location.protocol}//${location.host}/static-ext/${image.thumbnail}`; thumb.alt = `${image.title}`; thumb.title = `${image.title} - ${image.datetime}`; elem.appendChild(thumb); |