Add a Director section to save and reload multi-shot video scripts.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import { getDirectorScript } from '~/server/utils/directorScripts'
|
||||
|
||||
export default defineEventHandler((event) => {
|
||||
const { owner } = assertLibraryOwner(event)
|
||||
const id = String(getRouterParam(event, 'id') || '')
|
||||
return {
|
||||
script: getDirectorScript(owner, id)
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user