From ecd0199799df45d955ce87e9bb475b21fdd12d24 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Tue, 26 May 2026 10:36:45 -0400 Subject: [PATCH] =?UTF-8?q?feat(thumb-backfill):=20Pinia=20store=20?= =?UTF-8?q?=E2=80=94=20triggerBackfill()=20POSTs=20/api/thumbnails/backfil?= =?UTF-8?q?l?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 (1M context) --- frontend/src/stores/thumbnails.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 frontend/src/stores/thumbnails.js diff --git a/frontend/src/stores/thumbnails.js b/frontend/src/stores/thumbnails.js new file mode 100644 index 0000000..5f86f2b --- /dev/null +++ b/frontend/src/stores/thumbnails.js @@ -0,0 +1,12 @@ +import { defineStore } from 'pinia' +import { useApi } from '../composables/useApi.js' + +export const useThumbnailsStore = defineStore('thumbnails', () => { + const api = useApi() + + async function triggerBackfill () { + await api.post('/api/thumbnails/backfill') + } + + return { triggerBackfill } +})