Name, save, and load ordered scenes on the server; assemble copyable text with a Batch-compatible double blank line between scenes.
10 lines
277 B
TypeScript
10 lines
277 B
TypeScript
import { getPromptSequence } from '~/server/utils/promptSequences'
|
|
|
|
export default defineEventHandler((event) => {
|
|
const { owner } = assertLibraryOwner(event)
|
|
const id = String(getRouterParam(event, 'id') || '')
|
|
return {
|
|
sequence: getPromptSequence(owner, id)
|
|
}
|
|
})
|