Add a Director section to save and reload multi-shot video scripts.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-08-29 17:25:57 -05:00
co-authored by Cursor
parent 334bbba8af
commit 852b07bb97
11 changed files with 779 additions and 2 deletions
@@ -0,0 +1,11 @@
import { deleteDirectorScript, listDirectorScripts } from '~/server/utils/directorScripts'
export default defineEventHandler(async (event) => {
const { owner } = assertLibraryOwner(event)
const id = String(getRouterParam(event, 'id') || '')
await deleteDirectorScript(owner, id)
return {
ok: true,
scripts: listDirectorScripts(owner)
}
})