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 } +})