Files
aigen/server/api/library/lock.post.ts
T
TowstyandCursor f0f80b5873 Add per-user library settings, folder passwords, and a still picker.
Settings manages folders, thumbnail defaults, and passwords for the signed-in account, and choosing an image now browses saved stills instead of only the desktop file dialog.

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

6 lines
232 B
TypeScript

export default defineEventHandler(async (event) => {
const body = await readBody<{ folderId?: string }>(event).catch(() => ({} as { folderId?: string }))
clearFolderUnlock(event, body?.folderId)
return publicLibrary(event)
})