Copy generated stills into Input without loading the current frame.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-08-31 22:57:54 -05:00
co-authored by Cursor
parent 835a7bcd68
commit 5037c4fdeb
5 changed files with 169 additions and 11 deletions
@@ -0,0 +1,10 @@
import { assertFolderAccess, getStill, keepStillAsInput, libraryOwnerKey, publicLibrary } from '~/server/utils/library'
export default defineEventHandler(async (event) => {
const id = String(getRouterParam(event, 'id') || '')
const owner = libraryOwnerKey(event)
const still = getStill(owner, id)
assertFolderAccess(event, still.folderId)
const saved = await keepStillAsInput(owner, id)
return { still: saved, ...publicLibrary(event) }
})