Files
aigen/server/api/library/clips/[id].delete.ts
T
TowstyandCursor 83051e0ea3 Add a persistent clip library with folders, optional password, and hidden-thumbnail glow.
Generated videos save into a chosen folder, sensitive clips skip thumbnails until played, and Docker writes the catalog to a Coolify volume.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-25 18:03:26 -05:00

7 lines
179 B
TypeScript

export default defineEventHandler(async (event) => {
assertLibraryAccess(event)
const id = getRouterParam(event, 'id')
await deleteClip(String(id))
return { ok: true }
})